v1

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Server_ListServer_FullMethodName   = "/configure.api.configure.server.v1.Server/ListServer"
	Server_CreateServer_FullMethodName = "/configure.api.configure.server.v1.Server/CreateServer"
	Server_UpdateServer_FullMethodName = "/configure.api.configure.server.v1.Server/UpdateServer"
	Server_DeleteServer_FullMethodName = "/configure.api.configure.server.v1.Server/DeleteServer"
)
View Source
const OperationServerCreateServer = "/configure.api.configure.server.v1.Server/CreateServer"
View Source
const OperationServerDeleteServer = "/configure.api.configure.server.v1.Server/DeleteServer"
View Source
const OperationServerListServer = "/configure.api.configure.server.v1.Server/ListServer"
View Source
const OperationServerUpdateServer = "/configure.api.configure.server.v1.Server/UpdateServer"

Variables

View Source
var File_api_configure_server_configure_server_proto protoreflect.FileDescriptor
View Source
var File_api_configure_server_configure_server_service_proto protoreflect.FileDescriptor
View Source
var Server_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "configure.api.configure.server.v1.Server",
	HandlerType: (*ServerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListServer",
			Handler:    _Server_ListServer_Handler,
		},
		{
			MethodName: "CreateServer",
			Handler:    _Server_CreateServer_Handler,
		},
		{
			MethodName: "UpdateServer",
			Handler:    _Server_UpdateServer_Handler,
		},
		{
			MethodName: "DeleteServer",
			Handler:    _Server_DeleteServer_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/configure/server/configure_server_service.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 RegisterServerHTTPServer

func RegisterServerHTTPServer(s *http.Server, srv ServerHTTPServer)

func RegisterServerServer

func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer)

Types

type CreateServerReply

type CreateServerReply struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateServerReply) Descriptor deprecated

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

Deprecated: Use CreateServerReply.ProtoReflect.Descriptor instead.

func (*CreateServerReply) GetId

func (x *CreateServerReply) GetId() uint32

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

func (*CreateServerReply) Validate

func (m *CreateServerReply) Validate() error

Validate checks the field values on CreateServerReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateServerReply) ValidateAll

func (m *CreateServerReply) ValidateAll() error

ValidateAll checks the field values on CreateServerReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateServerReplyMultiError, or nil if none found.

type CreateServerReplyMultiError

type CreateServerReplyMultiError []error

CreateServerReplyMultiError is an error wrapping multiple validation errors returned by CreateServerReply.ValidateAll() if the designated constraints aren't met.

func (CreateServerReplyMultiError) AllErrors

func (m CreateServerReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateServerReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateServerReplyValidationError

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

CreateServerReplyValidationError is the validation error returned by CreateServerReply.Validate if the designated constraints aren't met.

func (CreateServerReplyValidationError) Cause

Cause function returns cause value.

func (CreateServerReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateServerReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateServerReplyValidationError) Field

Field function returns field value.

func (CreateServerReplyValidationError) Key

Key function returns key value.

func (CreateServerReplyValidationError) Reason

Reason function returns reason value.

type CreateServerRequest

type CreateServerRequest struct {
	Keyword     string  `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Name        string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
	Status      *bool   `protobuf:"varint,4,opt,name=status,proto3,oneof" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateServerRequest) Descriptor deprecated

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

Deprecated: Use CreateServerRequest.ProtoReflect.Descriptor instead.

func (*CreateServerRequest) GetDescription

func (x *CreateServerRequest) GetDescription() string

func (*CreateServerRequest) GetKeyword

func (x *CreateServerRequest) GetKeyword() string

func (*CreateServerRequest) GetName

func (x *CreateServerRequest) GetName() string

func (*CreateServerRequest) GetStatus

func (x *CreateServerRequest) GetStatus() bool

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

func (*CreateServerRequest) Validate

func (m *CreateServerRequest) Validate() error

Validate checks the field values on CreateServerRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateServerRequest) ValidateAll

func (m *CreateServerRequest) ValidateAll() error

ValidateAll checks the field values on CreateServerRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateServerRequestMultiError, or nil if none found.

type CreateServerRequestMultiError

type CreateServerRequestMultiError []error

CreateServerRequestMultiError is an error wrapping multiple validation errors returned by CreateServerRequest.ValidateAll() if the designated constraints aren't met.

func (CreateServerRequestMultiError) AllErrors

func (m CreateServerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateServerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateServerRequestValidationError

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

CreateServerRequestValidationError is the validation error returned by CreateServerRequest.Validate if the designated constraints aren't met.

func (CreateServerRequestValidationError) Cause

Cause function returns cause value.

func (CreateServerRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateServerRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateServerRequestValidationError) Field

Field function returns field value.

func (CreateServerRequestValidationError) Key

Key function returns key value.

func (CreateServerRequestValidationError) Reason

Reason function returns reason value.

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

func (*DeleteServerReply) Validate

func (m *DeleteServerReply) Validate() error

Validate checks the field values on DeleteServerReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteServerReply) ValidateAll

func (m *DeleteServerReply) ValidateAll() error

ValidateAll checks the field values on DeleteServerReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteServerReplyMultiError, or nil if none found.

type DeleteServerReplyMultiError

type DeleteServerReplyMultiError []error

DeleteServerReplyMultiError is an error wrapping multiple validation errors returned by DeleteServerReply.ValidateAll() if the designated constraints aren't met.

func (DeleteServerReplyMultiError) AllErrors

func (m DeleteServerReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteServerReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteServerReplyValidationError

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

DeleteServerReplyValidationError is the validation error returned by DeleteServerReply.Validate if the designated constraints aren't met.

func (DeleteServerReplyValidationError) Cause

Cause function returns cause value.

func (DeleteServerReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteServerReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteServerReplyValidationError) Field

Field function returns field value.

func (DeleteServerReplyValidationError) Key

Key function returns key value.

func (DeleteServerReplyValidationError) Reason

Reason function returns reason value.

type DeleteServerRequest

type DeleteServerRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteServerRequest) Descriptor deprecated

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

Deprecated: Use DeleteServerRequest.ProtoReflect.Descriptor instead.

func (*DeleteServerRequest) GetId

func (x *DeleteServerRequest) GetId() uint32

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

func (*DeleteServerRequest) Validate

func (m *DeleteServerRequest) Validate() error

Validate checks the field values on DeleteServerRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteServerRequest) ValidateAll

func (m *DeleteServerRequest) ValidateAll() error

ValidateAll checks the field values on DeleteServerRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteServerRequestMultiError, or nil if none found.

type DeleteServerRequestMultiError

type DeleteServerRequestMultiError []error

DeleteServerRequestMultiError is an error wrapping multiple validation errors returned by DeleteServerRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteServerRequestMultiError) AllErrors

func (m DeleteServerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteServerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteServerRequestValidationError

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

DeleteServerRequestValidationError is the validation error returned by DeleteServerRequest.Validate if the designated constraints aren't met.

func (DeleteServerRequestValidationError) Cause

Cause function returns cause value.

func (DeleteServerRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteServerRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteServerRequestValidationError) Field

Field function returns field value.

func (DeleteServerRequestValidationError) Key

Key function returns key value.

func (DeleteServerRequestValidationError) Reason

Reason function returns reason value.

type ListServerReply

type ListServerReply struct {
	Total uint32                    `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List  []*ListServerReply_Server `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListServerReply) Descriptor deprecated

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

Deprecated: Use ListServerReply.ProtoReflect.Descriptor instead.

func (*ListServerReply) GetList

func (x *ListServerReply) GetList() []*ListServerReply_Server

func (*ListServerReply) GetTotal

func (x *ListServerReply) GetTotal() uint32

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

func (*ListServerReply) Validate

func (m *ListServerReply) Validate() error

Validate checks the field values on ListServerReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListServerReply) ValidateAll

func (m *ListServerReply) ValidateAll() error

ValidateAll checks the field values on ListServerReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListServerReplyMultiError, or nil if none found.

type ListServerReplyMultiError

type ListServerReplyMultiError []error

ListServerReplyMultiError is an error wrapping multiple validation errors returned by ListServerReply.ValidateAll() if the designated constraints aren't met.

func (ListServerReplyMultiError) AllErrors

func (m ListServerReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListServerReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListServerReplyValidationError

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

ListServerReplyValidationError is the validation error returned by ListServerReply.Validate if the designated constraints aren't met.

func (ListServerReplyValidationError) Cause

Cause function returns cause value.

func (ListServerReplyValidationError) Error

Error satisfies the builtin error interface

func (ListServerReplyValidationError) ErrorName

func (e ListServerReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListServerReplyValidationError) Field

Field function returns field value.

func (ListServerReplyValidationError) Key

Key function returns key value.

func (ListServerReplyValidationError) Reason

Reason function returns reason value.

type ListServerReply_Server

type ListServerReply_Server struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Keyword     string  `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Name        string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
	Status      *bool   `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"`
	CreatedAt   uint32  `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt   uint32  `protobuf:"varint,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*ListServerReply_Server) Descriptor deprecated

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

Deprecated: Use ListServerReply_Server.ProtoReflect.Descriptor instead.

func (*ListServerReply_Server) GetCreatedAt

func (x *ListServerReply_Server) GetCreatedAt() uint32

func (*ListServerReply_Server) GetDescription

func (x *ListServerReply_Server) GetDescription() string

func (*ListServerReply_Server) GetId

func (x *ListServerReply_Server) GetId() uint32

func (*ListServerReply_Server) GetKeyword

func (x *ListServerReply_Server) GetKeyword() string

func (*ListServerReply_Server) GetName

func (x *ListServerReply_Server) GetName() string

func (*ListServerReply_Server) GetStatus

func (x *ListServerReply_Server) GetStatus() bool

func (*ListServerReply_Server) GetUpdatedAt

func (x *ListServerReply_Server) GetUpdatedAt() uint32

func (*ListServerReply_Server) ProtoMessage

func (*ListServerReply_Server) ProtoMessage()

func (*ListServerReply_Server) ProtoReflect

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

func (*ListServerReply_Server) Reset

func (x *ListServerReply_Server) Reset()

func (*ListServerReply_Server) String

func (x *ListServerReply_Server) String() string

func (*ListServerReply_Server) Validate

func (m *ListServerReply_Server) Validate() error

Validate checks the field values on ListServerReply_Server with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListServerReply_Server) ValidateAll

func (m *ListServerReply_Server) ValidateAll() error

ValidateAll checks the field values on ListServerReply_Server with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListServerReply_ServerMultiError, or nil if none found.

type ListServerReply_ServerMultiError

type ListServerReply_ServerMultiError []error

ListServerReply_ServerMultiError is an error wrapping multiple validation errors returned by ListServerReply_Server.ValidateAll() if the designated constraints aren't met.

func (ListServerReply_ServerMultiError) AllErrors

func (m ListServerReply_ServerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListServerReply_ServerMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListServerReply_ServerValidationError

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

ListServerReply_ServerValidationError is the validation error returned by ListServerReply_Server.Validate if the designated constraints aren't met.

func (ListServerReply_ServerValidationError) Cause

Cause function returns cause value.

func (ListServerReply_ServerValidationError) Error

Error satisfies the builtin error interface

func (ListServerReply_ServerValidationError) ErrorName

ErrorName returns error name.

func (ListServerReply_ServerValidationError) Field

Field function returns field value.

func (ListServerReply_ServerValidationError) Key

Key function returns key value.

func (ListServerReply_ServerValidationError) Reason

Reason function returns reason value.

type ListServerRequest

type ListServerRequest struct {
	Page     uint32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint32  `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Order    *string `protobuf:"bytes,3,opt,name=order,proto3,oneof" json:"order,omitempty"`
	OrderBy  *string `protobuf:"bytes,4,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"`
	Keyword  *string `protobuf:"bytes,5,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	Name     *string `protobuf:"bytes,6,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Status   *bool   `protobuf:"varint,7,opt,name=status,proto3,oneof" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ListServerRequest) Descriptor deprecated

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

Deprecated: Use ListServerRequest.ProtoReflect.Descriptor instead.

func (*ListServerRequest) GetKeyword

func (x *ListServerRequest) GetKeyword() string

func (*ListServerRequest) GetName

func (x *ListServerRequest) GetName() string

func (*ListServerRequest) GetOrder

func (x *ListServerRequest) GetOrder() string

func (*ListServerRequest) GetOrderBy

func (x *ListServerRequest) GetOrderBy() string

func (*ListServerRequest) GetPage

func (x *ListServerRequest) GetPage() uint32

func (*ListServerRequest) GetPageSize

func (x *ListServerRequest) GetPageSize() uint32

func (*ListServerRequest) GetStatus

func (x *ListServerRequest) GetStatus() bool

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

func (*ListServerRequest) Validate

func (m *ListServerRequest) Validate() error

Validate checks the field values on ListServerRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListServerRequest) ValidateAll

func (m *ListServerRequest) ValidateAll() error

ValidateAll checks the field values on ListServerRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListServerRequestMultiError, or nil if none found.

type ListServerRequestMultiError

type ListServerRequestMultiError []error

ListServerRequestMultiError is an error wrapping multiple validation errors returned by ListServerRequest.ValidateAll() if the designated constraints aren't met.

func (ListServerRequestMultiError) AllErrors

func (m ListServerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListServerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListServerRequestValidationError

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

ListServerRequestValidationError is the validation error returned by ListServerRequest.Validate if the designated constraints aren't met.

func (ListServerRequestValidationError) Cause

Cause function returns cause value.

func (ListServerRequestValidationError) Error

Error satisfies the builtin error interface

func (ListServerRequestValidationError) ErrorName

ErrorName returns error name.

func (ListServerRequestValidationError) Field

Field function returns field value.

func (ListServerRequestValidationError) Key

Key function returns key value.

func (ListServerRequestValidationError) Reason

Reason function returns reason value.

type ServerClient

type ServerClient interface {
	// ListServer 获取服务信息列表
	ListServer(ctx context.Context, in *ListServerRequest, opts ...grpc.CallOption) (*ListServerReply, error)
	// CreateServer 创建服务信息
	CreateServer(ctx context.Context, in *CreateServerRequest, opts ...grpc.CallOption) (*CreateServerReply, error)
	// UpdateServer 更新服务信息
	UpdateServer(ctx context.Context, in *UpdateServerRequest, opts ...grpc.CallOption) (*UpdateServerReply, error)
	// DeleteServer 删除服务信息
	DeleteServer(ctx context.Context, in *DeleteServerRequest, opts ...grpc.CallOption) (*DeleteServerReply, 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 ServerHTTPClient

type ServerHTTPClient interface {
	CreateServer(ctx context.Context, req *CreateServerRequest, opts ...http.CallOption) (rsp *CreateServerReply, err error)
	DeleteServer(ctx context.Context, req *DeleteServerRequest, opts ...http.CallOption) (rsp *DeleteServerReply, err error)
	ListServer(ctx context.Context, req *ListServerRequest, opts ...http.CallOption) (rsp *ListServerReply, err error)
	UpdateServer(ctx context.Context, req *UpdateServerRequest, opts ...http.CallOption) (rsp *UpdateServerReply, err error)
}

func NewServerHTTPClient

func NewServerHTTPClient(client *http.Client) ServerHTTPClient

type ServerHTTPClientImpl

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

func (*ServerHTTPClientImpl) CreateServer

func (*ServerHTTPClientImpl) DeleteServer

func (*ServerHTTPClientImpl) ListServer

func (*ServerHTTPClientImpl) UpdateServer

type ServerHTTPServer

type ServerHTTPServer interface {
	// CreateServer CreateServer 创建服务信息
	CreateServer(context.Context, *CreateServerRequest) (*CreateServerReply, error)
	// DeleteServer DeleteServer 删除服务信息
	DeleteServer(context.Context, *DeleteServerRequest) (*DeleteServerReply, error)
	// ListServer ListServer 获取服务信息列表
	ListServer(context.Context, *ListServerRequest) (*ListServerReply, error)
	// UpdateServer UpdateServer 更新服务信息
	UpdateServer(context.Context, *UpdateServerRequest) (*UpdateServerReply, error)
}

type ServerServer

type ServerServer interface {
	// ListServer 获取服务信息列表
	ListServer(context.Context, *ListServerRequest) (*ListServerReply, error)
	// CreateServer 创建服务信息
	CreateServer(context.Context, *CreateServerRequest) (*CreateServerReply, error)
	// UpdateServer 更新服务信息
	UpdateServer(context.Context, *UpdateServerRequest) (*UpdateServerReply, error)
	// DeleteServer 删除服务信息
	DeleteServer(context.Context, *DeleteServerRequest) (*DeleteServerReply, 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.

func (UnimplementedServerServer) CreateServer

func (UnimplementedServerServer) DeleteServer

func (UnimplementedServerServer) ListServer

func (UnimplementedServerServer) UpdateServer

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

func (*UpdateServerReply) Validate

func (m *UpdateServerReply) Validate() error

Validate checks the field values on UpdateServerReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateServerReply) ValidateAll

func (m *UpdateServerReply) ValidateAll() error

ValidateAll checks the field values on UpdateServerReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateServerReplyMultiError, or nil if none found.

type UpdateServerReplyMultiError

type UpdateServerReplyMultiError []error

UpdateServerReplyMultiError is an error wrapping multiple validation errors returned by UpdateServerReply.ValidateAll() if the designated constraints aren't met.

func (UpdateServerReplyMultiError) AllErrors

func (m UpdateServerReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateServerReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateServerReplyValidationError

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

UpdateServerReplyValidationError is the validation error returned by UpdateServerReply.Validate if the designated constraints aren't met.

func (UpdateServerReplyValidationError) Cause

Cause function returns cause value.

func (UpdateServerReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateServerReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateServerReplyValidationError) Field

Field function returns field value.

func (UpdateServerReplyValidationError) Key

Key function returns key value.

func (UpdateServerReplyValidationError) Reason

Reason function returns reason value.

type UpdateServerRequest

type UpdateServerRequest struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Keyword     string  `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Name        string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Status      *bool   `protobuf:"varint,4,opt,name=status,proto3,oneof" json:"status,omitempty"`
	Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateServerRequest) Descriptor deprecated

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

Deprecated: Use UpdateServerRequest.ProtoReflect.Descriptor instead.

func (*UpdateServerRequest) GetDescription

func (x *UpdateServerRequest) GetDescription() string

func (*UpdateServerRequest) GetId

func (x *UpdateServerRequest) GetId() uint32

func (*UpdateServerRequest) GetKeyword

func (x *UpdateServerRequest) GetKeyword() string

func (*UpdateServerRequest) GetName

func (x *UpdateServerRequest) GetName() string

func (*UpdateServerRequest) GetStatus

func (x *UpdateServerRequest) GetStatus() bool

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

func (*UpdateServerRequest) Validate

func (m *UpdateServerRequest) Validate() error

Validate checks the field values on UpdateServerRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateServerRequest) ValidateAll

func (m *UpdateServerRequest) ValidateAll() error

ValidateAll checks the field values on UpdateServerRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateServerRequestMultiError, or nil if none found.

type UpdateServerRequestMultiError

type UpdateServerRequestMultiError []error

UpdateServerRequestMultiError is an error wrapping multiple validation errors returned by UpdateServerRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateServerRequestMultiError) AllErrors

func (m UpdateServerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateServerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateServerRequestValidationError

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

UpdateServerRequestValidationError is the validation error returned by UpdateServerRequest.Validate if the designated constraints aren't met.

func (UpdateServerRequestValidationError) Cause

Cause function returns cause value.

func (UpdateServerRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateServerRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateServerRequestValidationError) Field

Field function returns field value.

func (UpdateServerRequestValidationError) Key

Key function returns key value.

func (UpdateServerRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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