reloadconfig

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_grpc_reloadconfig_reloadconfig_proto protoreflect.FileDescriptor
View Source
var ReloadConfig_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "reloadconfig.ReloadConfig",
	HandlerType: (*ReloadConfigServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ReloadConfig",
			Handler:    _ReloadConfig_ReloadConfig_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "grpc/reloadconfig/reloadconfig.proto",
}

ReloadConfig_ServiceDesc is the grpc.ServiceDesc for ReloadConfig service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterReloadConfigServer

func RegisterReloadConfigServer(s grpc.ServiceRegistrar, srv ReloadConfigServer)

Types

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type ReloadConfigClient

type ReloadConfigClient interface {
	ReloadConfig(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}

ReloadConfigClient is the client API for ReloadConfig 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.

type ReloadConfigServer

type ReloadConfigServer interface {
	ReloadConfig(context.Context, *Empty) (*Empty, error)
	// contains filtered or unexported methods
}

ReloadConfigServer is the server API for ReloadConfig service. All implementations must embed UnimplementedReloadConfigServer for forward compatibility

type Server

type Server struct {
	UnimplementedReloadConfigServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(conf xconfig.ReloadConfigInterface) *Server

func (*Server) ReloadConfig

func (s *Server) ReloadConfig(context.Context, *Empty) (*Empty, error)

type UnimplementedReloadConfigServer

type UnimplementedReloadConfigServer struct {
}

UnimplementedReloadConfigServer must be embedded to have forward compatible implementations.

func (UnimplementedReloadConfigServer) ReloadConfig

type UnsafeReloadConfigServer

type UnsafeReloadConfigServer interface {
	// contains filtered or unexported methods
}

UnsafeReloadConfigServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReloadConfigServer will result in compilation errors.

Jump to

Keyboard shortcuts

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