server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gRPC_v1_server_server_proto protoreflect.FileDescriptor
View Source
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: "GetStatus",
			Handler:    _ServerService_GetStatus_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"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetConfig

func (x *Config) GetConfig() []byte

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

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 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) GetStatus

func (ss *ServerService) GetStatus(ctx context.Context, request *Empty) (*model.Status, error)

Method to get server status

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)
	GetStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*model.Status, 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.

type ServerServiceServer

type ServerServiceServer interface {
	GetServerInformation(context.Context, *Empty) (*model.Response, error)
	GetServerConfiguraion(context.Context, *Empty) (*Config, error)
	GetStatus(context.Context, *Empty) (*model.Status, 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) GetServerConfiguraion(context.Context, *Empty) (*Config, error)

func (UnimplementedServerServiceServer) GetServerInformation

func (UnimplementedServerServiceServer) GetStatus

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.

Jump to

Keyboard shortcuts

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