v1

package
v0.0.0-...-70bbdd8 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Server_CreateServer_FullMethodName = "/configure.api.configure.server.v1.Server/CreateServer"
	Server_ListServer_FullMethodName   = "/configure.api.configure.server.v1.Server/ListServer"
)
View Source
const OperationServerCreateServer = "/configure.api.configure.server.v1.Server/CreateServer"
View Source
const OperationServerListServer = "/configure.api.configure.server.v1.Server/ListServer"

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: "CreateServer",
			Handler:    _Server_CreateServer_Handler,
		},
		{
			MethodName: "ListServer",
			Handler:    _Server_ListServer_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 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 {
	// CreateServer 创建服务
	CreateServer(ctx context.Context, in *CreateServerRequest, opts ...grpc.CallOption) (*CreateServerReply, error)
	// ListServer 获取服务信息列表
	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 ServerHTTPClient

type ServerHTTPClient interface {
	CreateServer(ctx context.Context, req *CreateServerRequest, opts ...http.CallOption) (rsp *CreateServerReply, err error)
	ListServer(ctx context.Context, req *ListServerRequest, opts ...http.CallOption) (rsp *ListServerReply, 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) ListServer

type ServerHTTPServer

type ServerHTTPServer interface {
	// CreateServer CreateServer 创建服务
	CreateServer(context.Context, *CreateServerRequest) (*CreateServerReply, error)
	// ListServer ListServer 获取服务信息列表
	ListServer(context.Context, *ListServerRequest) (*ListServerReply, error)
}

type ServerServer

type ServerServer interface {
	// CreateServer 创建服务
	CreateServer(context.Context, *CreateServerRequest) (*CreateServerReply, error)
	// ListServer 获取服务信息列表
	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) ListServer

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.

Jump to

Keyboard shortcuts

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