v1

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Service_PageServer_FullMethodName   = "/configure_server.Service/PageServer"
	Service_GetServer_FullMethodName    = "/configure_server.Service/GetServer"
	Service_AddServer_FullMethodName    = "/configure_server.Service/AddServer"
	Service_UpdateServer_FullMethodName = "/configure_server.Service/UpdateServer"
	Service_DeleteServer_FullMethodName = "/configure_server.Service/DeleteServer"
)
View Source
const OperationServiceAddServer = "/configure_server.Service/AddServer"
View Source
const OperationServiceDeleteServer = "/configure_server.Service/DeleteServer"
View Source
const OperationServiceGetServer = "/configure_server.Service/GetServer"
View Source
const OperationServicePageServer = "/configure_server.Service/PageServer"
View Source
const OperationServiceUpdateServer = "/configure_server.Service/UpdateServer"

Variables

View Source
var File_configure_server_proto protoreflect.FileDescriptor
View Source
var File_configure_server_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "configure_server.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PageServer",
			Handler:    _Service_PageServer_Handler,
		},
		{
			MethodName: "GetServer",
			Handler:    _Service_GetServer_Handler,
		},
		{
			MethodName: "AddServer",
			Handler:    _Service_AddServer_Handler,
		},
		{
			MethodName: "UpdateServer",
			Handler:    _Service_UpdateServer_Handler,
		},
		{
			MethodName: "DeleteServer",
			Handler:    _Service_DeleteServer_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "configure_server_service.proto",
}

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

Functions

func RegisterServiceHTTPServer

func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type AddServerReply

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

func (*AddServerReply) Descriptor deprecated

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

Deprecated: Use AddServerReply.ProtoReflect.Descriptor instead.

func (*AddServerReply) GetId

func (x *AddServerReply) GetId() uint32

func (*AddServerReply) ProtoMessage

func (*AddServerReply) ProtoMessage()

func (*AddServerReply) ProtoReflect

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

func (*AddServerReply) Reset

func (x *AddServerReply) Reset()

func (*AddServerReply) String

func (x *AddServerReply) String() string

func (*AddServerReply) Validate

func (m *AddServerReply) Validate() error

Validate checks the field values on AddServerReply 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 (*AddServerReply) ValidateAll

func (m *AddServerReply) ValidateAll() error

ValidateAll checks the field values on AddServerReply 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 AddServerReplyMultiError, or nil if none found.

type AddServerReplyMultiError

type AddServerReplyMultiError []error

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

func (AddServerReplyMultiError) AllErrors

func (m AddServerReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddServerReplyMultiError) Error

func (m AddServerReplyMultiError) Error() string

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

type AddServerReplyValidationError

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

AddServerReplyValidationError is the validation error returned by AddServerReply.Validate if the designated constraints aren't met.

func (AddServerReplyValidationError) Cause

Cause function returns cause value.

func (AddServerReplyValidationError) Error

Error satisfies the builtin error interface

func (AddServerReplyValidationError) ErrorName

func (e AddServerReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AddServerReplyValidationError) Field

Field function returns field value.

func (AddServerReplyValidationError) Key

Key function returns key value.

func (AddServerReplyValidationError) Reason

Reason function returns reason value.

type AddServerRequest

type AddServerRequest 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" json:"description,omitempty"`
	// contains filtered or unexported fields
}

新增环境

func (*AddServerRequest) Descriptor deprecated

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

Deprecated: Use AddServerRequest.ProtoReflect.Descriptor instead.

func (*AddServerRequest) GetDescription

func (x *AddServerRequest) GetDescription() string

func (*AddServerRequest) GetKeyword

func (x *AddServerRequest) GetKeyword() string

func (*AddServerRequest) GetName

func (x *AddServerRequest) GetName() string

func (*AddServerRequest) ProtoMessage

func (*AddServerRequest) ProtoMessage()

func (*AddServerRequest) ProtoReflect

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

func (*AddServerRequest) Reset

func (x *AddServerRequest) Reset()

func (*AddServerRequest) String

func (x *AddServerRequest) String() string

func (*AddServerRequest) Validate

func (m *AddServerRequest) Validate() error

Validate checks the field values on AddServerRequest 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 (*AddServerRequest) ValidateAll

func (m *AddServerRequest) ValidateAll() error

ValidateAll checks the field values on AddServerRequest 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 AddServerRequestMultiError, or nil if none found.

type AddServerRequestMultiError

type AddServerRequestMultiError []error

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

func (AddServerRequestMultiError) AllErrors

func (m AddServerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddServerRequestMultiError) Error

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

type AddServerRequestValidationError

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

AddServerRequestValidationError is the validation error returned by AddServerRequest.Validate if the designated constraints aren't met.

func (AddServerRequestValidationError) Cause

Cause function returns cause value.

func (AddServerRequestValidationError) Error

Error satisfies the builtin error interface

func (AddServerRequestValidationError) ErrorName

ErrorName returns error name.

func (AddServerRequestValidationError) Field

Field function returns field value.

func (AddServerRequestValidationError) Key

Key function returns key value.

func (AddServerRequestValidationError) 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 GetServerReply

type GetServerReply struct {
	Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	// contains filtered or unexported fields
}

func (*GetServerReply) Descriptor deprecated

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

Deprecated: Use GetServerReply.ProtoReflect.Descriptor instead.

func (*GetServerReply) GetServer

func (x *GetServerReply) GetServer() *Server

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

func (*GetServerReply) Validate

func (m *GetServerReply) Validate() error

Validate checks the field values on GetServerReply 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 (*GetServerReply) ValidateAll

func (m *GetServerReply) ValidateAll() error

ValidateAll checks the field values on GetServerReply 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 GetServerReplyMultiError, or nil if none found.

type GetServerReplyMultiError

type GetServerReplyMultiError []error

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

func (GetServerReplyMultiError) AllErrors

func (m GetServerReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetServerReplyMultiError) Error

func (m GetServerReplyMultiError) Error() string

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

type GetServerReplyValidationError

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

GetServerReplyValidationError is the validation error returned by GetServerReply.Validate if the designated constraints aren't met.

func (GetServerReplyValidationError) Cause

Cause function returns cause value.

func (GetServerReplyValidationError) Error

Error satisfies the builtin error interface

func (GetServerReplyValidationError) ErrorName

func (e GetServerReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetServerReplyValidationError) Field

Field function returns field value.

func (GetServerReplyValidationError) Key

Key function returns key value.

func (GetServerReplyValidationError) Reason

Reason function returns reason value.

type GetServerRequest

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

func (*GetServerRequest) Descriptor deprecated

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

Deprecated: Use GetServerRequest.ProtoReflect.Descriptor instead.

func (*GetServerRequest) GetId

func (x *GetServerRequest) GetId() uint32

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

func (*GetServerRequest) Validate

func (m *GetServerRequest) Validate() error

Validate checks the field values on GetServerRequest 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 (*GetServerRequest) ValidateAll

func (m *GetServerRequest) ValidateAll() error

ValidateAll checks the field values on GetServerRequest 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 GetServerRequestMultiError, or nil if none found.

type GetServerRequestMultiError

type GetServerRequestMultiError []error

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

func (GetServerRequestMultiError) AllErrors

func (m GetServerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetServerRequestMultiError) Error

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

type GetServerRequestValidationError

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

GetServerRequestValidationError is the validation error returned by GetServerRequest.Validate if the designated constraints aren't met.

func (GetServerRequestValidationError) Cause

Cause function returns cause value.

func (GetServerRequestValidationError) Error

Error satisfies the builtin error interface

func (GetServerRequestValidationError) ErrorName

ErrorName returns error name.

func (GetServerRequestValidationError) Field

Field function returns field value.

func (GetServerRequestValidationError) Key

Key function returns key value.

func (GetServerRequestValidationError) Reason

Reason function returns reason value.

type PageServerReply

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

func (*PageServerReply) Descriptor deprecated

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

Deprecated: Use PageServerReply.ProtoReflect.Descriptor instead.

func (*PageServerReply) GetList

func (x *PageServerReply) GetList() []*Server

func (*PageServerReply) GetTotal

func (x *PageServerReply) GetTotal() uint32

func (*PageServerReply) ProtoMessage

func (*PageServerReply) ProtoMessage()

func (*PageServerReply) ProtoReflect

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

func (*PageServerReply) Reset

func (x *PageServerReply) Reset()

func (*PageServerReply) String

func (x *PageServerReply) String() string

func (*PageServerReply) Validate

func (m *PageServerReply) Validate() error

Validate checks the field values on PageServerReply 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 (*PageServerReply) ValidateAll

func (m *PageServerReply) ValidateAll() error

ValidateAll checks the field values on PageServerReply 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 PageServerReplyMultiError, or nil if none found.

type PageServerReplyMultiError

type PageServerReplyMultiError []error

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

func (PageServerReplyMultiError) AllErrors

func (m PageServerReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageServerReplyMultiError) Error

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

type PageServerReplyValidationError

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

PageServerReplyValidationError is the validation error returned by PageServerReply.Validate if the designated constraints aren't met.

func (PageServerReplyValidationError) Cause

Cause function returns cause value.

func (PageServerReplyValidationError) Error

Error satisfies the builtin error interface

func (PageServerReplyValidationError) ErrorName

func (e PageServerReplyValidationError) ErrorName() string

ErrorName returns error name.

func (PageServerReplyValidationError) Field

Field function returns field value.

func (PageServerReplyValidationError) Key

Key function returns key value.

func (PageServerReplyValidationError) Reason

Reason function returns reason value.

type PageServerRequest

type PageServerRequest struct {
	Page     uint32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint32  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Keyword  *string `protobuf:"bytes,3,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	// contains filtered or unexported fields
}

func (*PageServerRequest) Descriptor deprecated

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

Deprecated: Use PageServerRequest.ProtoReflect.Descriptor instead.

func (*PageServerRequest) GetKeyword

func (x *PageServerRequest) GetKeyword() string

func (*PageServerRequest) GetPage

func (x *PageServerRequest) GetPage() uint32

func (*PageServerRequest) GetPageSize

func (x *PageServerRequest) GetPageSize() uint32

func (*PageServerRequest) ProtoMessage

func (*PageServerRequest) ProtoMessage()

func (*PageServerRequest) ProtoReflect

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

func (*PageServerRequest) Reset

func (x *PageServerRequest) Reset()

func (*PageServerRequest) String

func (x *PageServerRequest) String() string

func (*PageServerRequest) Validate

func (m *PageServerRequest) Validate() error

Validate checks the field values on PageServerRequest 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 (*PageServerRequest) ValidateAll

func (m *PageServerRequest) ValidateAll() error

ValidateAll checks the field values on PageServerRequest 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 PageServerRequestMultiError, or nil if none found.

type PageServerRequestMultiError

type PageServerRequestMultiError []error

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

func (PageServerRequestMultiError) AllErrors

func (m PageServerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageServerRequestMultiError) Error

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

type PageServerRequestValidationError

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

PageServerRequestValidationError is the validation error returned by PageServerRequest.Validate if the designated constraints aren't met.

func (PageServerRequestValidationError) Cause

Cause function returns cause value.

func (PageServerRequestValidationError) Error

Error satisfies the builtin error interface

func (PageServerRequestValidationError) ErrorName

ErrorName returns error name.

func (PageServerRequestValidationError) Field

Field function returns field value.

func (PageServerRequestValidationError) Key

Key function returns key value.

func (PageServerRequestValidationError) Reason

Reason function returns reason value.

type Server

type 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" json:"description,omitempty"`
	CreatedAt   uint32 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   uint32 `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Server) Descriptor deprecated

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

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetCreatedAt

func (x *Server) GetCreatedAt() uint32

func (*Server) GetDescription

func (x *Server) GetDescription() string

func (*Server) GetId

func (x *Server) GetId() uint32

func (*Server) GetKeyword

func (x *Server) GetKeyword() string

func (*Server) GetName

func (x *Server) GetName() string

func (*Server) GetUpdatedAt

func (x *Server) GetUpdatedAt() uint32

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) ProtoReflect

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

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

func (*Server) Validate

func (m *Server) Validate() error

Validate checks the field values on 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 (*Server) ValidateAll

func (m *Server) ValidateAll() error

ValidateAll checks the field values on 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 ServerMultiError, or nil if none found.

type ServerMultiError

type ServerMultiError []error

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

func (ServerMultiError) AllErrors

func (m ServerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServerMultiError) Error

func (m ServerMultiError) Error() string

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

type ServerValidationError

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

ServerValidationError is the validation error returned by Server.Validate if the designated constraints aren't met.

func (ServerValidationError) Cause

func (e ServerValidationError) Cause() error

Cause function returns cause value.

func (ServerValidationError) Error

func (e ServerValidationError) Error() string

Error satisfies the builtin error interface

func (ServerValidationError) ErrorName

func (e ServerValidationError) ErrorName() string

ErrorName returns error name.

func (ServerValidationError) Field

func (e ServerValidationError) Field() string

Field function returns field value.

func (ServerValidationError) Key

func (e ServerValidationError) Key() bool

Key function returns key value.

func (ServerValidationError) Reason

func (e ServerValidationError) Reason() string

Reason function returns reason value.

type ServiceClient

type ServiceClient interface {
	PageServer(ctx context.Context, in *PageServerRequest, opts ...grpc.CallOption) (*PageServerReply, error)
	GetServer(ctx context.Context, in *GetServerRequest, opts ...grpc.CallOption) (*Server, error)
	AddServer(ctx context.Context, in *AddServerRequest, opts ...grpc.CallOption) (*AddServerReply, error)
	UpdateServer(ctx context.Context, in *UpdateServerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteServer(ctx context.Context, in *DeleteServerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ServiceClient is the client API for Service 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 NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceHTTPClient

type ServiceHTTPClient interface {
	AddServer(ctx context.Context, req *AddServerRequest, opts ...http.CallOption) (rsp *AddServerReply, err error)
	DeleteServer(ctx context.Context, req *DeleteServerRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	GetServer(ctx context.Context, req *GetServerRequest, opts ...http.CallOption) (rsp *Server, err error)
	PageServer(ctx context.Context, req *PageServerRequest, opts ...http.CallOption) (rsp *PageServerReply, err error)
	UpdateServer(ctx context.Context, req *UpdateServerRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}

func NewServiceHTTPClient

func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient

type ServiceHTTPClientImpl

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

func (*ServiceHTTPClientImpl) AddServer

func (*ServiceHTTPClientImpl) DeleteServer

func (*ServiceHTTPClientImpl) GetServer

func (c *ServiceHTTPClientImpl) GetServer(ctx context.Context, in *GetServerRequest, opts ...http.CallOption) (*Server, error)

func (*ServiceHTTPClientImpl) PageServer

func (*ServiceHTTPClientImpl) UpdateServer

type ServiceServer

type ServiceServer interface {
	PageServer(context.Context, *PageServerRequest) (*PageServerReply, error)
	GetServer(context.Context, *GetServerRequest) (*Server, error)
	AddServer(context.Context, *AddServerRequest) (*AddServerReply, error)
	UpdateServer(context.Context, *UpdateServerRequest) (*emptypb.Empty, error)
	DeleteServer(context.Context, *DeleteServerRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) AddServer

func (UnimplementedServiceServer) DeleteServer

func (UnimplementedServiceServer) GetServer

func (UnimplementedServiceServer) PageServer

func (UnimplementedServiceServer) UpdateServer

type UnsafeServiceServer

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

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

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"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" 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) 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