config

package
v0.3.1-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigDao_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yuhaiin.protos.grpc.config.config_dao",
	HandlerType: (*ConfigDaoServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "load",
			Handler:    _ConfigDao_Load_Handler,
		},
		{
			MethodName: "save",
			Handler:    _ConfigDao_Save_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "grpc/config/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.

func (UnimplementedConfigDaoServer) Load

func (UnimplementedConfigDaoServer) Save

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.

Jump to

Keyboard shortcuts

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