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_AllEnv_FullMethodName        = "/configure_env.Service/AllEnv"
	Service_AddEnv_FullMethodName        = "/configure_env.Service/AddEnv"
	Service_UpdateEnv_FullMethodName     = "/configure_env.Service/UpdateEnv"
	Service_DeleteEnv_FullMethodName     = "/configure_env.Service/DeleteEnv"
	Service_GetEnvToken_FullMethodName   = "/configure_env.Service/GetEnvToken"
	Service_ResetEnvToken_FullMethodName = "/configure_env.Service/ResetEnvToken"
)
View Source
const OperationServiceAddEnv = "/configure_env.Service/AddEnv"
View Source
const OperationServiceAllEnv = "/configure_env.Service/AllEnv"
View Source
const OperationServiceDeleteEnv = "/configure_env.Service/DeleteEnv"
View Source
const OperationServiceGetEnvToken = "/configure_env.Service/GetEnvToken"
View Source
const OperationServiceResetEnvToken = "/configure_env.Service/ResetEnvToken"
View Source
const OperationServiceUpdateEnv = "/configure_env.Service/UpdateEnv"

Variables

View Source
var File_configure_env_proto protoreflect.FileDescriptor
View Source
var File_configure_env_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "configure_env.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AllEnv",
			Handler:    _Service_AllEnv_Handler,
		},
		{
			MethodName: "AddEnv",
			Handler:    _Service_AddEnv_Handler,
		},
		{
			MethodName: "UpdateEnv",
			Handler:    _Service_UpdateEnv_Handler,
		},
		{
			MethodName: "DeleteEnv",
			Handler:    _Service_DeleteEnv_Handler,
		},
		{
			MethodName: "GetEnvToken",
			Handler:    _Service_GetEnvToken_Handler,
		},
		{
			MethodName: "ResetEnvToken",
			Handler:    _Service_ResetEnvToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "configure_env_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 AddEnvReply

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

func (*AddEnvReply) Descriptor deprecated

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

Deprecated: Use AddEnvReply.ProtoReflect.Descriptor instead.

func (*AddEnvReply) GetId

func (x *AddEnvReply) GetId() uint32

func (*AddEnvReply) ProtoMessage

func (*AddEnvReply) ProtoMessage()

func (*AddEnvReply) ProtoReflect

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

func (*AddEnvReply) Reset

func (x *AddEnvReply) Reset()

func (*AddEnvReply) String

func (x *AddEnvReply) String() string

func (*AddEnvReply) Validate

func (m *AddEnvReply) Validate() error

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

func (m *AddEnvReply) ValidateAll() error

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

type AddEnvReplyMultiError

type AddEnvReplyMultiError []error

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

func (AddEnvReplyMultiError) AllErrors

func (m AddEnvReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddEnvReplyMultiError) Error

func (m AddEnvReplyMultiError) Error() string

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

type AddEnvReplyValidationError

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

AddEnvReplyValidationError is the validation error returned by AddEnvReply.Validate if the designated constraints aren't met.

func (AddEnvReplyValidationError) Cause

Cause function returns cause value.

func (AddEnvReplyValidationError) Error

Error satisfies the builtin error interface

func (AddEnvReplyValidationError) ErrorName

func (e AddEnvReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AddEnvReplyValidationError) Field

Field function returns field value.

func (AddEnvReplyValidationError) Key

Key function returns key value.

func (AddEnvReplyValidationError) Reason

Reason function returns reason value.

type AddEnvRequest

type AddEnvRequest 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 (*AddEnvRequest) Descriptor deprecated

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

Deprecated: Use AddEnvRequest.ProtoReflect.Descriptor instead.

func (*AddEnvRequest) GetDescription

func (x *AddEnvRequest) GetDescription() string

func (*AddEnvRequest) GetKeyword

func (x *AddEnvRequest) GetKeyword() string

func (*AddEnvRequest) GetName

func (x *AddEnvRequest) GetName() string

func (*AddEnvRequest) ProtoMessage

func (*AddEnvRequest) ProtoMessage()

func (*AddEnvRequest) ProtoReflect

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

func (*AddEnvRequest) Reset

func (x *AddEnvRequest) Reset()

func (*AddEnvRequest) String

func (x *AddEnvRequest) String() string

func (*AddEnvRequest) Validate

func (m *AddEnvRequest) Validate() error

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

func (m *AddEnvRequest) ValidateAll() error

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

type AddEnvRequestMultiError

type AddEnvRequestMultiError []error

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

func (AddEnvRequestMultiError) AllErrors

func (m AddEnvRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddEnvRequestMultiError) Error

func (m AddEnvRequestMultiError) Error() string

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

type AddEnvRequestValidationError

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

AddEnvRequestValidationError is the validation error returned by AddEnvRequest.Validate if the designated constraints aren't met.

func (AddEnvRequestValidationError) Cause

Cause function returns cause value.

func (AddEnvRequestValidationError) Error

Error satisfies the builtin error interface

func (AddEnvRequestValidationError) ErrorName

func (e AddEnvRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AddEnvRequestValidationError) Field

Field function returns field value.

func (AddEnvRequestValidationError) Key

Key function returns key value.

func (AddEnvRequestValidationError) Reason

Reason function returns reason value.

type AllEnvReply

type AllEnvReply struct {
	List []*AllEnvReply_Env `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

获取环境列表

func (*AllEnvReply) Descriptor deprecated

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

Deprecated: Use AllEnvReply.ProtoReflect.Descriptor instead.

func (*AllEnvReply) GetList

func (x *AllEnvReply) GetList() []*AllEnvReply_Env

func (*AllEnvReply) ProtoMessage

func (*AllEnvReply) ProtoMessage()

func (*AllEnvReply) ProtoReflect

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

func (*AllEnvReply) Reset

func (x *AllEnvReply) Reset()

func (*AllEnvReply) String

func (x *AllEnvReply) String() string

func (*AllEnvReply) Validate

func (m *AllEnvReply) Validate() error

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

func (m *AllEnvReply) ValidateAll() error

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

type AllEnvReplyMultiError

type AllEnvReplyMultiError []error

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

func (AllEnvReplyMultiError) AllErrors

func (m AllEnvReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllEnvReplyMultiError) Error

func (m AllEnvReplyMultiError) Error() string

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

type AllEnvReplyValidationError

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

AllEnvReplyValidationError is the validation error returned by AllEnvReply.Validate if the designated constraints aren't met.

func (AllEnvReplyValidationError) Cause

Cause function returns cause value.

func (AllEnvReplyValidationError) Error

Error satisfies the builtin error interface

func (AllEnvReplyValidationError) ErrorName

func (e AllEnvReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AllEnvReplyValidationError) Field

Field function returns field value.

func (AllEnvReplyValidationError) Key

Key function returns key value.

func (AllEnvReplyValidationError) Reason

Reason function returns reason value.

type AllEnvReply_Env

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

func (*AllEnvReply_Env) Descriptor deprecated

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

Deprecated: Use AllEnvReply_Env.ProtoReflect.Descriptor instead.

func (*AllEnvReply_Env) GetCreatedAt

func (x *AllEnvReply_Env) GetCreatedAt() uint32

func (*AllEnvReply_Env) GetDescription

func (x *AllEnvReply_Env) GetDescription() string

func (*AllEnvReply_Env) GetId

func (x *AllEnvReply_Env) GetId() uint32

func (*AllEnvReply_Env) GetKeyword

func (x *AllEnvReply_Env) GetKeyword() string

func (*AllEnvReply_Env) GetName

func (x *AllEnvReply_Env) GetName() string

func (*AllEnvReply_Env) GetStatus

func (x *AllEnvReply_Env) GetStatus() bool

func (*AllEnvReply_Env) GetUpdatedAt

func (x *AllEnvReply_Env) GetUpdatedAt() uint32

func (*AllEnvReply_Env) ProtoMessage

func (*AllEnvReply_Env) ProtoMessage()

func (*AllEnvReply_Env) ProtoReflect

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

func (*AllEnvReply_Env) Reset

func (x *AllEnvReply_Env) Reset()

func (*AllEnvReply_Env) String

func (x *AllEnvReply_Env) String() string

func (*AllEnvReply_Env) Validate

func (m *AllEnvReply_Env) Validate() error

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

func (m *AllEnvReply_Env) ValidateAll() error

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

type AllEnvReply_EnvMultiError

type AllEnvReply_EnvMultiError []error

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

func (AllEnvReply_EnvMultiError) AllErrors

func (m AllEnvReply_EnvMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllEnvReply_EnvMultiError) Error

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

type AllEnvReply_EnvValidationError

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

AllEnvReply_EnvValidationError is the validation error returned by AllEnvReply_Env.Validate if the designated constraints aren't met.

func (AllEnvReply_EnvValidationError) Cause

Cause function returns cause value.

func (AllEnvReply_EnvValidationError) Error

Error satisfies the builtin error interface

func (AllEnvReply_EnvValidationError) ErrorName

func (e AllEnvReply_EnvValidationError) ErrorName() string

ErrorName returns error name.

func (AllEnvReply_EnvValidationError) Field

Field function returns field value.

func (AllEnvReply_EnvValidationError) Key

Key function returns key value.

func (AllEnvReply_EnvValidationError) Reason

Reason function returns reason value.

type DeleteEnvRequest

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

删除环境

func (*DeleteEnvRequest) Descriptor deprecated

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

Deprecated: Use DeleteEnvRequest.ProtoReflect.Descriptor instead.

func (*DeleteEnvRequest) GetId

func (x *DeleteEnvRequest) GetId() uint32

func (*DeleteEnvRequest) ProtoMessage

func (*DeleteEnvRequest) ProtoMessage()

func (*DeleteEnvRequest) ProtoReflect

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

func (*DeleteEnvRequest) Reset

func (x *DeleteEnvRequest) Reset()

func (*DeleteEnvRequest) String

func (x *DeleteEnvRequest) String() string

func (*DeleteEnvRequest) Validate

func (m *DeleteEnvRequest) Validate() error

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

func (m *DeleteEnvRequest) ValidateAll() error

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

type DeleteEnvRequestMultiError

type DeleteEnvRequestMultiError []error

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

func (DeleteEnvRequestMultiError) AllErrors

func (m DeleteEnvRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteEnvRequestMultiError) Error

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

type DeleteEnvRequestValidationError

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

DeleteEnvRequestValidationError is the validation error returned by DeleteEnvRequest.Validate if the designated constraints aren't met.

func (DeleteEnvRequestValidationError) Cause

Cause function returns cause value.

func (DeleteEnvRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteEnvRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteEnvRequestValidationError) Field

Field function returns field value.

func (DeleteEnvRequestValidationError) Key

Key function returns key value.

func (DeleteEnvRequestValidationError) Reason

Reason function returns reason value.

type GetEnvTokenReply

type GetEnvTokenReply struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEnvTokenReply) Descriptor deprecated

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

Deprecated: Use GetEnvTokenReply.ProtoReflect.Descriptor instead.

func (*GetEnvTokenReply) GetToken

func (x *GetEnvTokenReply) GetToken() string

func (*GetEnvTokenReply) ProtoMessage

func (*GetEnvTokenReply) ProtoMessage()

func (*GetEnvTokenReply) ProtoReflect

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

func (*GetEnvTokenReply) Reset

func (x *GetEnvTokenReply) Reset()

func (*GetEnvTokenReply) String

func (x *GetEnvTokenReply) String() string

func (*GetEnvTokenReply) Validate

func (m *GetEnvTokenReply) Validate() error

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

func (m *GetEnvTokenReply) ValidateAll() error

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

type GetEnvTokenReplyMultiError

type GetEnvTokenReplyMultiError []error

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

func (GetEnvTokenReplyMultiError) AllErrors

func (m GetEnvTokenReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetEnvTokenReplyMultiError) Error

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

type GetEnvTokenReplyValidationError

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

GetEnvTokenReplyValidationError is the validation error returned by GetEnvTokenReply.Validate if the designated constraints aren't met.

func (GetEnvTokenReplyValidationError) Cause

Cause function returns cause value.

func (GetEnvTokenReplyValidationError) Error

Error satisfies the builtin error interface

func (GetEnvTokenReplyValidationError) ErrorName

ErrorName returns error name.

func (GetEnvTokenReplyValidationError) Field

Field function returns field value.

func (GetEnvTokenReplyValidationError) Key

Key function returns key value.

func (GetEnvTokenReplyValidationError) Reason

Reason function returns reason value.

type GetEnvTokenRequest

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

获取指定环境token

func (*GetEnvTokenRequest) Descriptor deprecated

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

Deprecated: Use GetEnvTokenRequest.ProtoReflect.Descriptor instead.

func (*GetEnvTokenRequest) GetId

func (x *GetEnvTokenRequest) GetId() uint32

func (*GetEnvTokenRequest) ProtoMessage

func (*GetEnvTokenRequest) ProtoMessage()

func (*GetEnvTokenRequest) ProtoReflect

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

func (*GetEnvTokenRequest) Reset

func (x *GetEnvTokenRequest) Reset()

func (*GetEnvTokenRequest) String

func (x *GetEnvTokenRequest) String() string

func (*GetEnvTokenRequest) Validate

func (m *GetEnvTokenRequest) Validate() error

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

func (m *GetEnvTokenRequest) ValidateAll() error

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

type GetEnvTokenRequestMultiError

type GetEnvTokenRequestMultiError []error

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

func (GetEnvTokenRequestMultiError) AllErrors

func (m GetEnvTokenRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetEnvTokenRequestMultiError) Error

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

type GetEnvTokenRequestValidationError

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

GetEnvTokenRequestValidationError is the validation error returned by GetEnvTokenRequest.Validate if the designated constraints aren't met.

func (GetEnvTokenRequestValidationError) Cause

Cause function returns cause value.

func (GetEnvTokenRequestValidationError) Error

Error satisfies the builtin error interface

func (GetEnvTokenRequestValidationError) ErrorName

ErrorName returns error name.

func (GetEnvTokenRequestValidationError) Field

Field function returns field value.

func (GetEnvTokenRequestValidationError) Key

Key function returns key value.

func (GetEnvTokenRequestValidationError) Reason

Reason function returns reason value.

type ResetEnvTokenReply

type ResetEnvTokenReply struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetEnvTokenReply) Descriptor deprecated

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

Deprecated: Use ResetEnvTokenReply.ProtoReflect.Descriptor instead.

func (*ResetEnvTokenReply) GetToken

func (x *ResetEnvTokenReply) GetToken() string

func (*ResetEnvTokenReply) ProtoMessage

func (*ResetEnvTokenReply) ProtoMessage()

func (*ResetEnvTokenReply) ProtoReflect

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

func (*ResetEnvTokenReply) Reset

func (x *ResetEnvTokenReply) Reset()

func (*ResetEnvTokenReply) String

func (x *ResetEnvTokenReply) String() string

func (*ResetEnvTokenReply) Validate

func (m *ResetEnvTokenReply) Validate() error

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

func (m *ResetEnvTokenReply) ValidateAll() error

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

type ResetEnvTokenReplyMultiError

type ResetEnvTokenReplyMultiError []error

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

func (ResetEnvTokenReplyMultiError) AllErrors

func (m ResetEnvTokenReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResetEnvTokenReplyMultiError) Error

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

type ResetEnvTokenReplyValidationError

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

ResetEnvTokenReplyValidationError is the validation error returned by ResetEnvTokenReply.Validate if the designated constraints aren't met.

func (ResetEnvTokenReplyValidationError) Cause

Cause function returns cause value.

func (ResetEnvTokenReplyValidationError) Error

Error satisfies the builtin error interface

func (ResetEnvTokenReplyValidationError) ErrorName

ErrorName returns error name.

func (ResetEnvTokenReplyValidationError) Field

Field function returns field value.

func (ResetEnvTokenReplyValidationError) Key

Key function returns key value.

func (ResetEnvTokenReplyValidationError) Reason

Reason function returns reason value.

type ResetEnvTokenRequest

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

重置token

func (*ResetEnvTokenRequest) Descriptor deprecated

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

Deprecated: Use ResetEnvTokenRequest.ProtoReflect.Descriptor instead.

func (*ResetEnvTokenRequest) GetId

func (x *ResetEnvTokenRequest) GetId() uint32

func (*ResetEnvTokenRequest) ProtoMessage

func (*ResetEnvTokenRequest) ProtoMessage()

func (*ResetEnvTokenRequest) ProtoReflect

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

func (*ResetEnvTokenRequest) Reset

func (x *ResetEnvTokenRequest) Reset()

func (*ResetEnvTokenRequest) String

func (x *ResetEnvTokenRequest) String() string

func (*ResetEnvTokenRequest) Validate

func (m *ResetEnvTokenRequest) Validate() error

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

func (m *ResetEnvTokenRequest) ValidateAll() error

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

type ResetEnvTokenRequestMultiError

type ResetEnvTokenRequestMultiError []error

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

func (ResetEnvTokenRequestMultiError) AllErrors

func (m ResetEnvTokenRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResetEnvTokenRequestMultiError) Error

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

type ResetEnvTokenRequestValidationError

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

ResetEnvTokenRequestValidationError is the validation error returned by ResetEnvTokenRequest.Validate if the designated constraints aren't met.

func (ResetEnvTokenRequestValidationError) Cause

Cause function returns cause value.

func (ResetEnvTokenRequestValidationError) Error

Error satisfies the builtin error interface

func (ResetEnvTokenRequestValidationError) ErrorName

ErrorName returns error name.

func (ResetEnvTokenRequestValidationError) Field

Field function returns field value.

func (ResetEnvTokenRequestValidationError) Key

Key function returns key value.

func (ResetEnvTokenRequestValidationError) Reason

Reason function returns reason value.

type ServiceClient

type ServiceClient interface {
	// AllEnv 获取全部环境
	AllEnv(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AllEnvReply, error)
	// AddEnv 添加环境
	AddEnv(ctx context.Context, in *AddEnvRequest, opts ...grpc.CallOption) (*AddEnvReply, error)
	// UpdateEnv 更新环境信息
	UpdateEnv(ctx context.Context, in *UpdateEnvRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// DeleteEnv 删除环境信息
	DeleteEnv(ctx context.Context, in *DeleteEnvRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// GetEnvToken 获取环境token
	GetEnvToken(ctx context.Context, in *GetEnvTokenRequest, opts ...grpc.CallOption) (*GetEnvTokenReply, error)
	// ResetEnvToken 重置环境token
	ResetEnvToken(ctx context.Context, in *ResetEnvTokenRequest, opts ...grpc.CallOption) (*ResetEnvTokenReply, 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 {
	AddEnv(ctx context.Context, req *AddEnvRequest, opts ...http.CallOption) (rsp *AddEnvReply, err error)
	AllEnv(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *AllEnvReply, err error)
	DeleteEnv(ctx context.Context, req *DeleteEnvRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	GetEnvToken(ctx context.Context, req *GetEnvTokenRequest, opts ...http.CallOption) (rsp *GetEnvTokenReply, err error)
	ResetEnvToken(ctx context.Context, req *ResetEnvTokenRequest, opts ...http.CallOption) (rsp *ResetEnvTokenReply, err error)
	UpdateEnv(ctx context.Context, req *UpdateEnvRequest, 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) AddEnv

func (*ServiceHTTPClientImpl) AllEnv

func (*ServiceHTTPClientImpl) DeleteEnv

func (*ServiceHTTPClientImpl) GetEnvToken

func (*ServiceHTTPClientImpl) ResetEnvToken

func (*ServiceHTTPClientImpl) UpdateEnv

type ServiceHTTPServer

type ServiceHTTPServer interface {
	// AddEnv AddEnv 添加环境
	AddEnv(context.Context, *AddEnvRequest) (*AddEnvReply, error)
	// AllEnv AllEnv 获取全部环境
	AllEnv(context.Context, *emptypb.Empty) (*AllEnvReply, error)
	// DeleteEnv DeleteEnv 删除环境信息
	DeleteEnv(context.Context, *DeleteEnvRequest) (*emptypb.Empty, error)
	// GetEnvToken GetEnvToken 获取环境token
	GetEnvToken(context.Context, *GetEnvTokenRequest) (*GetEnvTokenReply, error)
	// ResetEnvToken ResetEnvToken 重置环境token
	ResetEnvToken(context.Context, *ResetEnvTokenRequest) (*ResetEnvTokenReply, error)
	// UpdateEnv UpdateEnv 更新环境信息
	UpdateEnv(context.Context, *UpdateEnvRequest) (*emptypb.Empty, error)
}

type ServiceServer

type ServiceServer interface {
	// AllEnv 获取全部环境
	AllEnv(context.Context, *emptypb.Empty) (*AllEnvReply, error)
	// AddEnv 添加环境
	AddEnv(context.Context, *AddEnvRequest) (*AddEnvReply, error)
	// UpdateEnv 更新环境信息
	UpdateEnv(context.Context, *UpdateEnvRequest) (*emptypb.Empty, error)
	// DeleteEnv 删除环境信息
	DeleteEnv(context.Context, *DeleteEnvRequest) (*emptypb.Empty, error)
	// GetEnvToken 获取环境token
	GetEnvToken(context.Context, *GetEnvTokenRequest) (*GetEnvTokenReply, error)
	// ResetEnvToken 重置环境token
	ResetEnvToken(context.Context, *ResetEnvTokenRequest) (*ResetEnvTokenReply, 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) AddEnv

func (UnimplementedServiceServer) AllEnv

func (UnimplementedServiceServer) DeleteEnv

func (UnimplementedServiceServer) GetEnvToken

func (UnimplementedServiceServer) ResetEnvToken

func (UnimplementedServiceServer) UpdateEnv

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 UpdateEnvRequest

type UpdateEnvRequest 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"`
	Status      *bool  `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"`
	// contains filtered or unexported fields
}

修改环境

func (*UpdateEnvRequest) Descriptor deprecated

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

Deprecated: Use UpdateEnvRequest.ProtoReflect.Descriptor instead.

func (*UpdateEnvRequest) GetDescription

func (x *UpdateEnvRequest) GetDescription() string

func (*UpdateEnvRequest) GetId

func (x *UpdateEnvRequest) GetId() uint32

func (*UpdateEnvRequest) GetKeyword

func (x *UpdateEnvRequest) GetKeyword() string

func (*UpdateEnvRequest) GetName

func (x *UpdateEnvRequest) GetName() string

func (*UpdateEnvRequest) GetStatus

func (x *UpdateEnvRequest) GetStatus() bool

func (*UpdateEnvRequest) ProtoMessage

func (*UpdateEnvRequest) ProtoMessage()

func (*UpdateEnvRequest) ProtoReflect

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

func (*UpdateEnvRequest) Reset

func (x *UpdateEnvRequest) Reset()

func (*UpdateEnvRequest) String

func (x *UpdateEnvRequest) String() string

func (*UpdateEnvRequest) Validate

func (m *UpdateEnvRequest) Validate() error

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

func (m *UpdateEnvRequest) ValidateAll() error

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

type UpdateEnvRequestMultiError

type UpdateEnvRequestMultiError []error

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

func (UpdateEnvRequestMultiError) AllErrors

func (m UpdateEnvRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateEnvRequestMultiError) Error

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

type UpdateEnvRequestValidationError

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

UpdateEnvRequestValidationError is the validation error returned by UpdateEnvRequest.Validate if the designated constraints aren't met.

func (UpdateEnvRequestValidationError) Cause

Cause function returns cause value.

func (UpdateEnvRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateEnvRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateEnvRequestValidationError) Field

Field function returns field value.

func (UpdateEnvRequestValidationError) Key

Key function returns key value.

func (UpdateEnvRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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