Documentation ¶
Index ¶
- func DialPilotService(ctx context.Context, host string, port int) (client pbpilot.PilotServiceClient, conn *grpc.ClientConn, err error)
- func DialPilotServiceForFrontgate_TLS(ctx context.Context, host string, port int, tlsConfig *tls.Config) (client pbpilot.PilotServiceForFrontgateClient, conn *grpc.ClientConn, ...)
- func LoadPilotClientTLSConfig(certFile, keyFile, caCertFile, tlsServerName string) (p *pbtypes.PilotClientTLSConfig, err error)
- func LoadPilotConfig(path string) (*pbtypes.PilotConfig, error)
- func LoadPilotTLSConfig(serverCertFile, serverKeyFile string, clientCertFile, clientKeyFile string, ...) (p *pbtypes.PilotTLSConfig, err error)
- func MustLoadPilotConfig(path string) *pbtypes.PilotConfig
- func NewClientTLSConfigFromPbConfig(pbcfg *pbtypes.PilotClientTLSConfig) (*tls.Config, error)
- func NewServerTLSConfigFromPbConfig(pbcfg *pbtypes.PilotTLSConfig) (*tls.Config, error)
- type FrameChannel
- func DialFrontgateChannelTLS(ctx context.Context, target string, tlsConfig *tls.Config, ...) (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.PilotServiceForFrontgate_FrontgateChannelClient) *FrameChannel
- func NewFrontgateChannelFromServer(ch pbpilot.PilotServiceForFrontgate_FrontgateChannelServer) *FrameChannel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialPilotService ¶
func DialPilotServiceForFrontgate_TLS ¶ added in v0.2.0
func LoadPilotClientTLSConfig ¶ added in v0.2.0
func LoadPilotConfig ¶
func LoadPilotTLSConfig ¶ added in v0.2.0
func MustLoadPilotConfig ¶
func MustLoadPilotConfig(path string) *pbtypes.PilotConfig
func NewClientTLSConfigFromPbConfig ¶ added in v0.2.0
func NewServerTLSConfigFromPbConfig ¶ added in v0.2.0
Types ¶
type FrameChannel ¶
type FrameChannel struct { RecvMsgFunc func() ([]byte, error) SendMsgFunc func(data []byte) error CloseFunc func() error // contains filtered or unexported fields }
func DialFrontgateChannelTLS ¶ added in v0.2.0
func DialFrontgateChannelTLS( ctx context.Context, target string, tlsConfig *tls.Config, opts ...grpc.DialOption, ) ( ch *FrameChannel, conn *grpc.ClientConn, err error, )
func NewFrameChannel ¶
func NewFrontgateChannelFromClient ¶
func NewFrontgateChannelFromClient(ch pbpilot.PilotServiceForFrontgate_FrontgateChannelClient) *FrameChannel
func NewFrontgateChannelFromServer ¶
func NewFrontgateChannelFromServer(ch pbpilot.PilotServiceForFrontgate_FrontgateChannelServer) *FrameChannel
func (*FrameChannel) Close ¶
func (p *FrameChannel) Close() error
Click to show internal directories.
Click to hide internal directories.