Documentation
¶
Index ¶
- Variables
- func RegisterServerServiceServer(s grpc.ServiceRegistrar, srv ServerServiceServer)
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetConfig() []byte
- func (x *Config) GetError() string
- func (x *Config) GetStatus() int64
- func (x *Config) GetSuccess() bool
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type Empty
- type ServerService
- func (ss *ServerService) GetServerConfiguraion(ctx context.Context, request *Empty) (*Config, error)
- func (ss *ServerService) GetServerInformation(ctx context.Context, request *Empty) (*model.Response, error)
- func (ss *ServerService) UpdateServer(ctx context.Context, request *model.Server) (*model.Response, error)
- type ServerServiceClient
- type ServerServiceServer
- type UnimplementedServerServiceServer
- func (UnimplementedServerServiceServer) GetServerConfiguraion(context.Context, *Empty) (*Config, error)
- func (UnimplementedServerServiceServer) GetServerInformation(context.Context, *Empty) (*model.Response, error)
- func (UnimplementedServerServiceServer) UpdateServer(context.Context, *model.Server) (*model.Response, error)
- type UnsafeServerServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_gRPC_v1_server_server_proto protoreflect.FileDescriptor
var ServerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "server.ServerService", HandlerType: (*ServerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetServerInformation", Handler: _ServerService_GetServerInformation_Handler, }, { MethodName: "GetServerConfiguraion", Handler: _ServerService_GetServerConfiguraion_Handler, }, { MethodName: "UpdateServer", Handler: _ServerService_UpdateServer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "gRPC/v1/server/server.proto", }
ServerService_ServiceDesc is the grpc.ServiceDesc for ServerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServerServiceServer ¶
func RegisterServerServiceServer(s grpc.ServiceRegistrar, srv ServerServiceServer)
Types ¶
type Config ¶
type Config struct { Config []byte `protobuf:"bytes,1,opt,name=Config,proto3" json:"Config,omitempty"` Status int64 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Success bool `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetSuccess ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type ServerService ¶
type ServerService struct {
UnimplementedServerServiceServer
}
func (*ServerService) GetServerConfiguraion ¶
func (ss *ServerService) GetServerConfiguraion(ctx context.Context, request *Empty) (*Config, error)
method to get server configuration
func (*ServerService) GetServerInformation ¶
func (ss *ServerService) GetServerInformation(ctx context.Context, request *Empty) (*model.Response, error)
Method to get server information
func (*ServerService) UpdateServer ¶
func (ss *ServerService) UpdateServer(ctx context.Context, request *model.Server) (*model.Response, error)
Method to update server
type ServerServiceClient ¶
type ServerServiceClient interface { GetServerInformation(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*model.Response, error) GetServerConfiguraion(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Config, error) UpdateServer(ctx context.Context, in *model.Server, opts ...grpc.CallOption) (*model.Response, error) }
ServerServiceClient is the client API for ServerService 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 NewServerServiceClient ¶
func NewServerServiceClient(cc grpc.ClientConnInterface) ServerServiceClient
type ServerServiceServer ¶
type ServerServiceServer interface { GetServerInformation(context.Context, *Empty) (*model.Response, error) GetServerConfiguraion(context.Context, *Empty) (*Config, error) UpdateServer(context.Context, *model.Server) (*model.Response, error) // contains filtered or unexported methods }
ServerServiceServer is the server API for ServerService service. All implementations must embed UnimplementedServerServiceServer for forward compatibility
type UnimplementedServerServiceServer ¶
type UnimplementedServerServiceServer struct { }
UnimplementedServerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServerServiceServer) GetServerConfiguraion ¶
func (UnimplementedServerServiceServer) GetServerInformation ¶
func (UnimplementedServerServiceServer) UpdateServer ¶
type UnsafeServerServiceServer ¶
type UnsafeServerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServerServiceServer will result in compilation errors.