commander

package
v3.11.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commander

type Commander struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewCommander

func NewCommander(ctx context.Context, config *Config) (*Commander, error)

func (*Commander) Close

func (c *Commander) Close() error

func (*Commander) Start

func (c *Commander) Start() error

func (*Commander) Type

func (c *Commander) Type() interface{}

type CommanderOutbound

type CommanderOutbound struct {
	// contains filtered or unexported fields
}

func (*CommanderOutbound) Close

func (co *CommanderOutbound) Close() error

func (*CommanderOutbound) Dispatch

func (co *CommanderOutbound) Dispatch(ctx context.Context, r ray.OutboundRay)

func (*CommanderOutbound) Start

func (co *CommanderOutbound) Start() error

func (*CommanderOutbound) Tag

func (co *CommanderOutbound) Tag() string

type Config

type Config struct {
	// Tag of the outbound handler that handles grpc connections.
	Tag string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"`
	// Services that supported by this server. All services must implement Service interface.
	Service []*v2ray_core_common_serial.TypedMessage `protobuf:"bytes,2,rep,name=service" json:"service,omitempty"`
}

Config is the settings for Commander.

func (*Config) Descriptor

func (*Config) Descriptor() ([]byte, []int)

func (*Config) GetService

func (m *Config) GetService() []*v2ray_core_common_serial.TypedMessage

func (*Config) GetTag

func (m *Config) GetTag() string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

type OutboundListener

type OutboundListener struct {
	// contains filtered or unexported fields
}

func (*OutboundListener) Accept

func (l *OutboundListener) Accept() (net.Conn, error)

func (*OutboundListener) Addr

func (l *OutboundListener) Addr() net.Addr

func (*OutboundListener) Close

func (l *OutboundListener) Close() error

type Service

type Service interface {
	Register(*grpc.Server)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL