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 DialPilotChannelTLS(ctx context.Context, target string, tlsConfig *tls.Config, ...) (*FrameChannel, *grpc.ClientConn, error)
- 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 DialPilotChannelTLS ¶ added in v0.4.0
func DialPilotChannelTLS( ctx context.Context, target string, tlsConfig *tls.Config, opts ...grpc.DialOption, ) (*FrameChannel, *grpc.ClientConn, error)
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.