Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer)
- type CreateServerReply
- type CreateServerRequest
- type DeleteServerReply
- type DeleteServerRequest
- type GetServerReply
- type GetServerRequest
- type ListServerReply
- type ListServerRequest
- type ServerClient
- type ServerServer
- type UnimplementedServerServer
- func (UnimplementedServerServer) CreateServer(context.Context, *CreateServerRequest) (*CreateServerReply, error)
- func (UnimplementedServerServer) DeleteServer(context.Context, *DeleteServerRequest) (*DeleteServerReply, error)
- func (UnimplementedServerServer) GetServer(context.Context, *GetServerRequest) (*GetServerReply, error)
- func (UnimplementedServerServer) ListServer(context.Context, *ListServerRequest) (*ListServerReply, error)
- func (UnimplementedServerServer) UpdateServer(context.Context, *UpdateServerRequest) (*UpdateServerReply, error)
- type UnsafeServerServer
- type UpdateServerReply
- type UpdateServerRequest
Constants ¶
const ( Server_CreateServer_FullMethodName = "/api.server.Server/CreateServer" Server_UpdateServer_FullMethodName = "/api.server.Server/UpdateServer" Server_DeleteServer_FullMethodName = "/api.server.Server/DeleteServer" Server_GetServer_FullMethodName = "/api.server.Server/GetServer" Server_ListServer_FullMethodName = "/api.server.Server/ListServer" )
Variables ¶
var File_server_server_proto protoreflect.FileDescriptor
var Server_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.server.Server", HandlerType: (*ServerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateServer", Handler: _Server_CreateServer_Handler, }, { MethodName: "UpdateServer", Handler: _Server_UpdateServer_Handler, }, { MethodName: "DeleteServer", Handler: _Server_DeleteServer_Handler, }, { MethodName: "GetServer", Handler: _Server_GetServer_Handler, }, { MethodName: "ListServer", Handler: _Server_ListServer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "server/server.proto", }
Server_ServiceDesc is the grpc.ServiceDesc for Server service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServerServer ¶
func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer)
Types ¶
type CreateServerReply ¶
type CreateServerReply struct {
// contains filtered or unexported fields
}
func (*CreateServerReply) Descriptor
deprecated
func (*CreateServerReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateServerReply.ProtoReflect.Descriptor instead.
func (*CreateServerReply) ProtoMessage ¶
func (*CreateServerReply) ProtoMessage()
func (*CreateServerReply) ProtoReflect ¶
func (x *CreateServerReply) ProtoReflect() protoreflect.Message
func (*CreateServerReply) Reset ¶
func (x *CreateServerReply) Reset()
func (*CreateServerReply) String ¶
func (x *CreateServerReply) String() string
type CreateServerRequest ¶
type CreateServerRequest struct {
// contains filtered or unexported fields
}
func (*CreateServerRequest) Descriptor
deprecated
func (*CreateServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateServerRequest.ProtoReflect.Descriptor instead.
func (*CreateServerRequest) ProtoMessage ¶
func (*CreateServerRequest) ProtoMessage()
func (*CreateServerRequest) ProtoReflect ¶
func (x *CreateServerRequest) ProtoReflect() protoreflect.Message
func (*CreateServerRequest) Reset ¶
func (x *CreateServerRequest) Reset()
func (*CreateServerRequest) String ¶
func (x *CreateServerRequest) String() string
type DeleteServerReply ¶
type DeleteServerReply struct {
// contains filtered or unexported fields
}
func (*DeleteServerReply) Descriptor
deprecated
func (*DeleteServerReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteServerReply.ProtoReflect.Descriptor instead.
func (*DeleteServerReply) ProtoMessage ¶
func (*DeleteServerReply) ProtoMessage()
func (*DeleteServerReply) ProtoReflect ¶
func (x *DeleteServerReply) ProtoReflect() protoreflect.Message
func (*DeleteServerReply) Reset ¶
func (x *DeleteServerReply) Reset()
func (*DeleteServerReply) String ¶
func (x *DeleteServerReply) String() string
type DeleteServerRequest ¶
type DeleteServerRequest struct {
// contains filtered or unexported fields
}
func (*DeleteServerRequest) Descriptor
deprecated
func (*DeleteServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteServerRequest.ProtoReflect.Descriptor instead.
func (*DeleteServerRequest) ProtoMessage ¶
func (*DeleteServerRequest) ProtoMessage()
func (*DeleteServerRequest) ProtoReflect ¶
func (x *DeleteServerRequest) ProtoReflect() protoreflect.Message
func (*DeleteServerRequest) Reset ¶
func (x *DeleteServerRequest) Reset()
func (*DeleteServerRequest) String ¶
func (x *DeleteServerRequest) String() string
type GetServerReply ¶
type GetServerReply struct {
// contains filtered or unexported fields
}
func (*GetServerReply) Descriptor
deprecated
func (*GetServerReply) Descriptor() ([]byte, []int)
Deprecated: Use GetServerReply.ProtoReflect.Descriptor instead.
func (*GetServerReply) ProtoMessage ¶
func (*GetServerReply) ProtoMessage()
func (*GetServerReply) ProtoReflect ¶
func (x *GetServerReply) ProtoReflect() protoreflect.Message
func (*GetServerReply) Reset ¶
func (x *GetServerReply) Reset()
func (*GetServerReply) String ¶
func (x *GetServerReply) String() string
type GetServerRequest ¶
type GetServerRequest struct {
// contains filtered or unexported fields
}
func (*GetServerRequest) Descriptor
deprecated
func (*GetServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetServerRequest.ProtoReflect.Descriptor instead.
func (*GetServerRequest) ProtoMessage ¶
func (*GetServerRequest) ProtoMessage()
func (*GetServerRequest) ProtoReflect ¶
func (x *GetServerRequest) ProtoReflect() protoreflect.Message
func (*GetServerRequest) Reset ¶
func (x *GetServerRequest) Reset()
func (*GetServerRequest) String ¶
func (x *GetServerRequest) String() string
type ListServerReply ¶
type ListServerReply struct {
// contains filtered or unexported fields
}
func (*ListServerReply) Descriptor
deprecated
func (*ListServerReply) Descriptor() ([]byte, []int)
Deprecated: Use ListServerReply.ProtoReflect.Descriptor instead.
func (*ListServerReply) ProtoMessage ¶
func (*ListServerReply) ProtoMessage()
func (*ListServerReply) ProtoReflect ¶
func (x *ListServerReply) ProtoReflect() protoreflect.Message
func (*ListServerReply) Reset ¶
func (x *ListServerReply) Reset()
func (*ListServerReply) String ¶
func (x *ListServerReply) String() string
type ListServerRequest ¶
type ListServerRequest struct {
// contains filtered or unexported fields
}
func (*ListServerRequest) Descriptor
deprecated
func (*ListServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListServerRequest.ProtoReflect.Descriptor instead.
func (*ListServerRequest) ProtoMessage ¶
func (*ListServerRequest) ProtoMessage()
func (*ListServerRequest) ProtoReflect ¶
func (x *ListServerRequest) ProtoReflect() protoreflect.Message
func (*ListServerRequest) Reset ¶
func (x *ListServerRequest) Reset()
func (*ListServerRequest) String ¶
func (x *ListServerRequest) String() string
type ServerClient ¶
type ServerClient interface { CreateServer(ctx context.Context, in *CreateServerRequest, opts ...grpc.CallOption) (*CreateServerReply, error) UpdateServer(ctx context.Context, in *UpdateServerRequest, opts ...grpc.CallOption) (*UpdateServerReply, error) DeleteServer(ctx context.Context, in *DeleteServerRequest, opts ...grpc.CallOption) (*DeleteServerReply, error) GetServer(ctx context.Context, in *GetServerRequest, opts ...grpc.CallOption) (*GetServerReply, error) ListServer(ctx context.Context, in *ListServerRequest, opts ...grpc.CallOption) (*ListServerReply, error) }
ServerClient is the client API for Server 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 NewServerClient ¶
func NewServerClient(cc grpc.ClientConnInterface) ServerClient
type ServerServer ¶
type ServerServer interface { CreateServer(context.Context, *CreateServerRequest) (*CreateServerReply, error) UpdateServer(context.Context, *UpdateServerRequest) (*UpdateServerReply, error) DeleteServer(context.Context, *DeleteServerRequest) (*DeleteServerReply, error) GetServer(context.Context, *GetServerRequest) (*GetServerReply, error) ListServer(context.Context, *ListServerRequest) (*ListServerReply, error) // contains filtered or unexported methods }
ServerServer is the server API for Server service. All implementations must embed UnimplementedServerServer for forward compatibility.
type UnimplementedServerServer ¶
type UnimplementedServerServer struct{}
UnimplementedServerServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedServerServer) CreateServer ¶
func (UnimplementedServerServer) CreateServer(context.Context, *CreateServerRequest) (*CreateServerReply, error)
func (UnimplementedServerServer) DeleteServer ¶
func (UnimplementedServerServer) DeleteServer(context.Context, *DeleteServerRequest) (*DeleteServerReply, error)
func (UnimplementedServerServer) GetServer ¶
func (UnimplementedServerServer) GetServer(context.Context, *GetServerRequest) (*GetServerReply, error)
func (UnimplementedServerServer) ListServer ¶
func (UnimplementedServerServer) ListServer(context.Context, *ListServerRequest) (*ListServerReply, error)
func (UnimplementedServerServer) UpdateServer ¶
func (UnimplementedServerServer) UpdateServer(context.Context, *UpdateServerRequest) (*UpdateServerReply, error)
type UnsafeServerServer ¶
type UnsafeServerServer interface {
// contains filtered or unexported methods
}
UnsafeServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServerServer will result in compilation errors.
type UpdateServerReply ¶
type UpdateServerReply struct {
// contains filtered or unexported fields
}
func (*UpdateServerReply) Descriptor
deprecated
func (*UpdateServerReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateServerReply.ProtoReflect.Descriptor instead.
func (*UpdateServerReply) ProtoMessage ¶
func (*UpdateServerReply) ProtoMessage()
func (*UpdateServerReply) ProtoReflect ¶
func (x *UpdateServerReply) ProtoReflect() protoreflect.Message
func (*UpdateServerReply) Reset ¶
func (x *UpdateServerReply) Reset()
func (*UpdateServerReply) String ¶
func (x *UpdateServerReply) String() string
type UpdateServerRequest ¶
type UpdateServerRequest struct {
// contains filtered or unexported fields
}
func (*UpdateServerRequest) Descriptor
deprecated
func (*UpdateServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateServerRequest.ProtoReflect.Descriptor instead.
func (*UpdateServerRequest) ProtoMessage ¶
func (*UpdateServerRequest) ProtoMessage()
func (*UpdateServerRequest) ProtoReflect ¶
func (x *UpdateServerRequest) ProtoReflect() protoreflect.Message
func (*UpdateServerRequest) Reset ¶
func (x *UpdateServerRequest) Reset()
func (*UpdateServerRequest) String ¶
func (x *UpdateServerRequest) String() string