Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ConfigDao_ServiceDesc = grpc.ServiceDesc{ ServiceName: "yuhaiin.protos.config.service.config_dao", HandlerType: (*ConfigDaoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "load", Handler: _ConfigDao_Load_Handler, }, { MethodName: "save", Handler: _ConfigDao_Save_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "config/grpc/config.proto", }
ConfigDao_ServiceDesc is the grpc.ServiceDesc for ConfigDao service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterConfigDaoServer ¶
func RegisterConfigDaoServer(s grpc.ServiceRegistrar, srv ConfigDaoServer)
Types ¶
type ConfigDaoClient ¶
type ConfigDaoClient interface { Load(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*config.Setting, error) Save(ctx context.Context, in *config.Setting, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ConfigDaoClient is the client API for ConfigDao service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewConfigDaoClient ¶
func NewConfigDaoClient(cc grpc.ClientConnInterface) ConfigDaoClient
type ConfigDaoServer ¶
type ConfigDaoServer interface { Load(context.Context, *emptypb.Empty) (*config.Setting, error) Save(context.Context, *config.Setting) (*emptypb.Empty, error) // contains filtered or unexported methods }
ConfigDaoServer is the server API for ConfigDao service. All implementations must embed UnimplementedConfigDaoServer for forward compatibility
type UnimplementedConfigDaoServer ¶
type UnimplementedConfigDaoServer struct { }
UnimplementedConfigDaoServer must be embedded to have forward compatible implementations.
type UnsafeConfigDaoServer ¶
type UnsafeConfigDaoServer interface {
// contains filtered or unexported methods
}
UnsafeConfigDaoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConfigDaoServer will result in compilation errors.