mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-21 15:08:08 +00:00
Remove prefix 'V' in struct names
This commit is contained in:
1 parent
cc3fdb6ef4
commit
51670b223d
27 files changed
+201
-201
No files matched your search
@@ -0,0 +1,36 @@
|
||||
package core
|
||||
|
||||
type Ray struct {
|
||||
Input chan []byte
|
||||
Output chan []byte
|
||||
}
|
||||
|
||||
func NewRay() Ray {
|
||||
return Ray{make(chan []byte, 128), make(chan []byte, 128)}
|
||||
}
|
||||
|
||||
type OutboundRay interface {
|
||||
OutboundInput() <-chan []byte
|
||||
OutboundOutput() chan<- []byte
|
||||
}
|
||||
|
||||
type InboundRay interface {
|
||||
InboundInput() chan<- []byte
|
||||
InboundOutput() <-chan []byte
|
||||
}
|
||||
|
||||
func (ray Ray) OutboundInput() <-chan []byte {
|
||||
return ray.Input
|
||||
}
|
||||
|
||||
func (ray Ray) OutboundOutput() chan<- []byte {
|
||||
return ray.Output
|
||||
}
|
||||
|
||||
func (ray Ray) InboundInput() chan<- []byte {
|
||||
return ray.Input
|
||||
}
|
||||
|
||||
func (ray Ray) InboundOutput() <-chan []byte {
|
||||
return ray.Output
|
||||
}
|
||||
Reference in new issue
Block a user