gateway

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayConnectorClient

type GatewayConnectorClient struct {
	*net.BrokerExt
	// contains filtered or unexported fields
}

func (GatewayConnectorClient) AddHandler

func (c GatewayConnectorClient) AddHandler(ctx context.Context, methods []string, handler core.GatewayConnectorHandler) error

func (GatewayConnectorClient) AwaitConnection

func (c GatewayConnectorClient) AwaitConnection(ctx context.Context, gatewayID string) error

func (GatewayConnectorClient) DonID

func (GatewayConnectorClient) GatewayIDs

func (c GatewayConnectorClient) GatewayIDs(ctx context.Context) ([]string, error)

func (GatewayConnectorClient) SendToGateway

func (c GatewayConnectorClient) SendToGateway(ctx context.Context, gatewayID string, resp *jsonrpc.Response[json.RawMessage]) error

func (GatewayConnectorClient) SignMessage

func (c GatewayConnectorClient) SignMessage(ctx context.Context, msg []byte) ([]byte, error)

type GatewayConnectorHandlerClient

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

func (GatewayConnectorHandlerClient) HandleGatewayMessage

func (c GatewayConnectorHandlerClient) HandleGatewayMessage(ctx context.Context, gatewayID string, req *jsonrpc.Request[json.RawMessage]) error

func (GatewayConnectorHandlerClient) ID

type GatewayConnectorHandlerServer

type GatewayConnectorHandlerServer struct {
	pb.UnimplementedGatewayConnectorHandlerServer
	*net.BrokerExt
	// contains filtered or unexported fields
}

func (GatewayConnectorHandlerServer) HandleGatewayMessage

func (s GatewayConnectorHandlerServer) HandleGatewayMessage(ctx context.Context, req *pb.SendMessageRequest) (*emptypb.Empty, error)

type GatewayConnectorServer

type GatewayConnectorServer struct {
	pb.UnimplementedGatewayConnectorServer
	*net.BrokerExt
	// contains filtered or unexported fields
}

func NewGatewayConnectorServer

func NewGatewayConnectorServer(b *net.BrokerExt, impl core.GatewayConnector) *GatewayConnectorServer

func (GatewayConnectorServer) AddHandler

func (GatewayConnectorServer) AwaitConnection

func (s GatewayConnectorServer) AwaitConnection(ctx context.Context, req *pb.GatewayIDRequest) (*emptypb.Empty, error)

func (GatewayConnectorServer) DonID

func (GatewayConnectorServer) GatewayIDs

func (GatewayConnectorServer) SendToGateway

func (GatewayConnectorServer) SignMessage

Jump to

Keyboard shortcuts

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