opt

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserAppRpcServer

func RegisterUserAppRpcServer(s *grpc.Server, srv UserAppRpcServer)

Types

type UnimplementedUserAppRpcServer

type UnimplementedUserAppRpcServer struct {
}

UnimplementedUserAppRpcServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserAppRpcServer) ListUser

type UserAppRpcClient

type UserAppRpcClient interface {
	// 获取用户列表
	ListUser(ctx context.Context, in *opt.QueryReq, opts ...grpc.CallOption) (*opt.ListUserReply, error)
}

UserAppRpcClient is the client API for UserAppRpc service.

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

func NewUserAppRpcClient

func NewUserAppRpcClient(cc *grpc.ClientConn) UserAppRpcClient

type UserAppRpcServer

type UserAppRpcServer interface {
	// 获取用户列表
	ListUser(context.Context, *opt.QueryReq) (*opt.ListUserReply, error)
}

UserAppRpcServer is the server API for UserAppRpc service.

Jump to

Keyboard shortcuts

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