Documentation ¶
Index ¶
- func DialPilotService(ctx context.Context, host string, port int) (client pbpilot.PilotServiceClient, conn *grpc.ClientConn, err error)
- func LoadPilotConfig(path string) (*pbtypes.PilotConfig, error)
- func MustLoadPilotConfig(path string) *pbtypes.PilotConfig
- type FrameChannel
- func DialFrontgateChannel(ctx context.Context, target string, opts ...grpc.DialOption) (ch *FrameChannel, conn *grpc.ClientConn, err error)
- func NewFrameChannel(recv func() ([]byte, error), send func(data []byte) error, close func() error) *FrameChannel
- func NewFrontgateChannelFromClient(ch pbpilot.PilotService_FrontgateChannelClient) *FrameChannel
- func NewFrontgateChannelFromServer(ch pbpilot.PilotService_FrontgateChannelServer) *FrameChannel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialPilotService ¶
func LoadPilotConfig ¶
func MustLoadPilotConfig ¶
func MustLoadPilotConfig(path string) *pbtypes.PilotConfig
Types ¶
type FrameChannel ¶
type FrameChannel struct { RecvMsgFunc func() ([]byte, error) SendMsgFunc func(data []byte) error CloseFunc func() error // contains filtered or unexported fields }
func DialFrontgateChannel ¶
func DialFrontgateChannel( ctx context.Context, target string, opts ...grpc.DialOption, ) ( ch *FrameChannel, conn *grpc.ClientConn, err error, )
func NewFrameChannel ¶
func NewFrontgateChannelFromClient ¶
func NewFrontgateChannelFromClient(ch pbpilot.PilotService_FrontgateChannelClient) *FrameChannel
func NewFrontgateChannelFromServer ¶
func NewFrontgateChannelFromServer(ch pbpilot.PilotService_FrontgateChannelServer) *FrameChannel
func (*FrameChannel) Close ¶
func (p *FrameChannel) Close() error
Click to show internal directories.
Click to hide internal directories.