app

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServerAppRpcServer

func RegisterServerAppRpcServer(s *grpc.Server, srv ServerAppRpcServer)

Types

type ServerAppRpcClient

type ServerAppRpcClient interface {
	Boot(ctx context.Context, in *dto.BootReq, opts ...grpc.CallOption) (*dto.BootResp, error)
	Traffic(ctx context.Context, in *dto.TrafficReq, opts ...grpc.CallOption) (*dto.TrafficResp, error)
	Open(ctx context.Context, in *dto.OpenReq, opts ...grpc.CallOption) (*dto.OpenResp, error)
	Close(ctx context.Context, in *dto.CloseReq, opts ...grpc.CallOption) (*dto.CloseResp, error)
	Tick(ctx context.Context, in *dto.TickReq, opts ...grpc.CallOption) (*dto.TickResp, error)
	Shutdown(ctx context.Context, in *dto.ShutdownReq, opts ...grpc.CallOption) (*dto.ShutdownResp, error)
}

ServerAppRpcClient is the client API for ServerAppRpc service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewServerAppRpcClient

func NewServerAppRpcClient(cc *grpc.ClientConn) ServerAppRpcClient

type ServerAppRpcServer

ServerAppRpcServer is the server API for ServerAppRpc service.

type UnimplementedServerAppRpcServer

type UnimplementedServerAppRpcServer struct {
}

UnimplementedServerAppRpcServer can be embedded to have forward compatible implementations.

func (*UnimplementedServerAppRpcServer) Boot

func (*UnimplementedServerAppRpcServer) Close

func (*UnimplementedServerAppRpcServer) Open

func (*UnimplementedServerAppRpcServer) Shutdown

func (*UnimplementedServerAppRpcServer) Tick

func (*UnimplementedServerAppRpcServer) Traffic

Jump to

Keyboard shortcuts

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