Documentation ¶
Index ¶
Constants ¶
const ( ConfigService_Load_FullMethodName = "/yuhaiin.protos.config.service.config_service/load" ConfigService_Save_FullMethodName = "/yuhaiin.protos.config.service.config_service/save" )
Variables ¶
var ConfigService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "yuhaiin.protos.config.service.config_service", HandlerType: (*ConfigServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "load", Handler: _ConfigService_Load_Handler, }, { MethodName: "save", Handler: _ConfigService_Save_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "config/grpc/config.proto", }
ConfigService_ServiceDesc is the grpc.ServiceDesc for ConfigService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterConfigServiceServer ¶
func RegisterConfigServiceServer(s grpc.ServiceRegistrar, srv ConfigServiceServer)
Types ¶
type ConfigServiceClient ¶
type ConfigServiceClient 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) }
ConfigServiceClient is the client API for ConfigService 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 NewConfigServiceClient ¶
func NewConfigServiceClient(cc grpc.ClientConnInterface) ConfigServiceClient
type ConfigServiceServer ¶
type ConfigServiceServer interface { Load(context.Context, *emptypb.Empty) (*config.Setting, error) Save(context.Context, *config.Setting) (*emptypb.Empty, error) // contains filtered or unexported methods }
ConfigServiceServer is the server API for ConfigService service. All implementations must embed UnimplementedConfigServiceServer for forward compatibility
type UnimplementedConfigServiceServer ¶
type UnimplementedConfigServiceServer struct { }
UnimplementedConfigServiceServer must be embedded to have forward compatible implementations.
type UnsafeConfigServiceServer ¶
type UnsafeConfigServiceServer interface {
// contains filtered or unexported methods
}
UnsafeConfigServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConfigServiceServer will result in compilation errors.