Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddEnvReply
- func (*AddEnvReply) Descriptor() ([]byte, []int)deprecated
- func (x *AddEnvReply) GetId() uint32
- func (*AddEnvReply) ProtoMessage()
- func (x *AddEnvReply) ProtoReflect() protoreflect.Message
- func (x *AddEnvReply) Reset()
- func (x *AddEnvReply) String() string
- func (m *AddEnvReply) Validate() error
- func (m *AddEnvReply) ValidateAll() error
- type AddEnvReplyMultiError
- type AddEnvReplyValidationError
- func (e AddEnvReplyValidationError) Cause() error
- func (e AddEnvReplyValidationError) Error() string
- func (e AddEnvReplyValidationError) ErrorName() string
- func (e AddEnvReplyValidationError) Field() string
- func (e AddEnvReplyValidationError) Key() bool
- func (e AddEnvReplyValidationError) Reason() string
- type AddEnvRequest
- func (*AddEnvRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddEnvRequest) GetDescription() string
- func (x *AddEnvRequest) GetKeyword() string
- func (x *AddEnvRequest) GetName() string
- func (*AddEnvRequest) ProtoMessage()
- func (x *AddEnvRequest) ProtoReflect() protoreflect.Message
- func (x *AddEnvRequest) Reset()
- func (x *AddEnvRequest) String() string
- func (m *AddEnvRequest) Validate() error
- func (m *AddEnvRequest) ValidateAll() error
- type AddEnvRequestMultiError
- type AddEnvRequestValidationError
- func (e AddEnvRequestValidationError) Cause() error
- func (e AddEnvRequestValidationError) Error() string
- func (e AddEnvRequestValidationError) ErrorName() string
- func (e AddEnvRequestValidationError) Field() string
- func (e AddEnvRequestValidationError) Key() bool
- func (e AddEnvRequestValidationError) Reason() string
- type AllEnvReply
- func (*AllEnvReply) Descriptor() ([]byte, []int)deprecated
- func (x *AllEnvReply) GetList() []*AllEnvReply_Env
- func (*AllEnvReply) ProtoMessage()
- func (x *AllEnvReply) ProtoReflect() protoreflect.Message
- func (x *AllEnvReply) Reset()
- func (x *AllEnvReply) String() string
- func (m *AllEnvReply) Validate() error
- func (m *AllEnvReply) ValidateAll() error
- type AllEnvReplyMultiError
- type AllEnvReplyValidationError
- func (e AllEnvReplyValidationError) Cause() error
- func (e AllEnvReplyValidationError) Error() string
- func (e AllEnvReplyValidationError) ErrorName() string
- func (e AllEnvReplyValidationError) Field() string
- func (e AllEnvReplyValidationError) Key() bool
- func (e AllEnvReplyValidationError) Reason() string
- type AllEnvReply_Env
- func (*AllEnvReply_Env) Descriptor() ([]byte, []int)deprecated
- func (x *AllEnvReply_Env) GetCreatedAt() uint32
- func (x *AllEnvReply_Env) GetDescription() string
- func (x *AllEnvReply_Env) GetId() uint32
- func (x *AllEnvReply_Env) GetKeyword() string
- func (x *AllEnvReply_Env) GetName() string
- func (x *AllEnvReply_Env) GetStatus() bool
- func (x *AllEnvReply_Env) GetUpdatedAt() uint32
- func (*AllEnvReply_Env) ProtoMessage()
- func (x *AllEnvReply_Env) ProtoReflect() protoreflect.Message
- func (x *AllEnvReply_Env) Reset()
- func (x *AllEnvReply_Env) String() string
- func (m *AllEnvReply_Env) Validate() error
- func (m *AllEnvReply_Env) ValidateAll() error
- type AllEnvReply_EnvMultiError
- type AllEnvReply_EnvValidationError
- func (e AllEnvReply_EnvValidationError) Cause() error
- func (e AllEnvReply_EnvValidationError) Error() string
- func (e AllEnvReply_EnvValidationError) ErrorName() string
- func (e AllEnvReply_EnvValidationError) Field() string
- func (e AllEnvReply_EnvValidationError) Key() bool
- func (e AllEnvReply_EnvValidationError) Reason() string
- type DeleteEnvRequest
- func (*DeleteEnvRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteEnvRequest) GetId() uint32
- func (*DeleteEnvRequest) ProtoMessage()
- func (x *DeleteEnvRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteEnvRequest) Reset()
- func (x *DeleteEnvRequest) String() string
- func (m *DeleteEnvRequest) Validate() error
- func (m *DeleteEnvRequest) ValidateAll() error
- type DeleteEnvRequestMultiError
- type DeleteEnvRequestValidationError
- func (e DeleteEnvRequestValidationError) Cause() error
- func (e DeleteEnvRequestValidationError) Error() string
- func (e DeleteEnvRequestValidationError) ErrorName() string
- func (e DeleteEnvRequestValidationError) Field() string
- func (e DeleteEnvRequestValidationError) Key() bool
- func (e DeleteEnvRequestValidationError) Reason() string
- type GetEnvTokenReply
- func (*GetEnvTokenReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetEnvTokenReply) GetToken() string
- func (*GetEnvTokenReply) ProtoMessage()
- func (x *GetEnvTokenReply) ProtoReflect() protoreflect.Message
- func (x *GetEnvTokenReply) Reset()
- func (x *GetEnvTokenReply) String() string
- func (m *GetEnvTokenReply) Validate() error
- func (m *GetEnvTokenReply) ValidateAll() error
- type GetEnvTokenReplyMultiError
- type GetEnvTokenReplyValidationError
- func (e GetEnvTokenReplyValidationError) Cause() error
- func (e GetEnvTokenReplyValidationError) Error() string
- func (e GetEnvTokenReplyValidationError) ErrorName() string
- func (e GetEnvTokenReplyValidationError) Field() string
- func (e GetEnvTokenReplyValidationError) Key() bool
- func (e GetEnvTokenReplyValidationError) Reason() string
- type GetEnvTokenRequest
- func (*GetEnvTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetEnvTokenRequest) GetId() uint32
- func (*GetEnvTokenRequest) ProtoMessage()
- func (x *GetEnvTokenRequest) ProtoReflect() protoreflect.Message
- func (x *GetEnvTokenRequest) Reset()
- func (x *GetEnvTokenRequest) String() string
- func (m *GetEnvTokenRequest) Validate() error
- func (m *GetEnvTokenRequest) ValidateAll() error
- type GetEnvTokenRequestMultiError
- type GetEnvTokenRequestValidationError
- func (e GetEnvTokenRequestValidationError) Cause() error
- func (e GetEnvTokenRequestValidationError) Error() string
- func (e GetEnvTokenRequestValidationError) ErrorName() string
- func (e GetEnvTokenRequestValidationError) Field() string
- func (e GetEnvTokenRequestValidationError) Key() bool
- func (e GetEnvTokenRequestValidationError) Reason() string
- type ResetEnvTokenReply
- func (*ResetEnvTokenReply) Descriptor() ([]byte, []int)deprecated
- func (x *ResetEnvTokenReply) GetToken() string
- func (*ResetEnvTokenReply) ProtoMessage()
- func (x *ResetEnvTokenReply) ProtoReflect() protoreflect.Message
- func (x *ResetEnvTokenReply) Reset()
- func (x *ResetEnvTokenReply) String() string
- func (m *ResetEnvTokenReply) Validate() error
- func (m *ResetEnvTokenReply) ValidateAll() error
- type ResetEnvTokenReplyMultiError
- type ResetEnvTokenReplyValidationError
- func (e ResetEnvTokenReplyValidationError) Cause() error
- func (e ResetEnvTokenReplyValidationError) Error() string
- func (e ResetEnvTokenReplyValidationError) ErrorName() string
- func (e ResetEnvTokenReplyValidationError) Field() string
- func (e ResetEnvTokenReplyValidationError) Key() bool
- func (e ResetEnvTokenReplyValidationError) Reason() string
- type ResetEnvTokenRequest
- func (*ResetEnvTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetEnvTokenRequest) GetId() uint32
- func (*ResetEnvTokenRequest) ProtoMessage()
- func (x *ResetEnvTokenRequest) ProtoReflect() protoreflect.Message
- func (x *ResetEnvTokenRequest) Reset()
- func (x *ResetEnvTokenRequest) String() string
- func (m *ResetEnvTokenRequest) Validate() error
- func (m *ResetEnvTokenRequest) ValidateAll() error
- type ResetEnvTokenRequestMultiError
- type ResetEnvTokenRequestValidationError
- func (e ResetEnvTokenRequestValidationError) Cause() error
- func (e ResetEnvTokenRequestValidationError) Error() string
- func (e ResetEnvTokenRequestValidationError) ErrorName() string
- func (e ResetEnvTokenRequestValidationError) Field() string
- func (e ResetEnvTokenRequestValidationError) Key() bool
- func (e ResetEnvTokenRequestValidationError) Reason() string
- type ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) AddEnv(ctx context.Context, in *AddEnvRequest, opts ...http.CallOption) (*AddEnvReply, error)
- func (c *ServiceHTTPClientImpl) AllEnv(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*AllEnvReply, error)
- func (c *ServiceHTTPClientImpl) DeleteEnv(ctx context.Context, in *DeleteEnvRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) GetEnvToken(ctx context.Context, in *GetEnvTokenRequest, opts ...http.CallOption) (*GetEnvTokenReply, error)
- func (c *ServiceHTTPClientImpl) ResetEnvToken(ctx context.Context, in *ResetEnvTokenRequest, opts ...http.CallOption) (*ResetEnvTokenReply, error)
- func (c *ServiceHTTPClientImpl) UpdateEnv(ctx context.Context, in *UpdateEnvRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type ServiceHTTPServer
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddEnv(context.Context, *AddEnvRequest) (*AddEnvReply, error)
- func (UnimplementedServiceServer) AllEnv(context.Context, *emptypb.Empty) (*AllEnvReply, error)
- func (UnimplementedServiceServer) DeleteEnv(context.Context, *DeleteEnvRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) GetEnvToken(context.Context, *GetEnvTokenRequest) (*GetEnvTokenReply, error)
- func (UnimplementedServiceServer) ResetEnvToken(context.Context, *ResetEnvTokenRequest) (*ResetEnvTokenReply, error)
- func (UnimplementedServiceServer) UpdateEnv(context.Context, *UpdateEnvRequest) (*emptypb.Empty, error)
- type UnsafeServiceServer
- type UpdateEnvRequest
- func (*UpdateEnvRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateEnvRequest) GetDescription() string
- func (x *UpdateEnvRequest) GetId() uint32
- func (x *UpdateEnvRequest) GetKeyword() string
- func (x *UpdateEnvRequest) GetName() string
- func (x *UpdateEnvRequest) GetStatus() bool
- func (*UpdateEnvRequest) ProtoMessage()
- func (x *UpdateEnvRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateEnvRequest) Reset()
- func (x *UpdateEnvRequest) String() string
- func (m *UpdateEnvRequest) Validate() error
- func (m *UpdateEnvRequest) ValidateAll() error
- type UpdateEnvRequestMultiError
- type UpdateEnvRequestValidationError
- func (e UpdateEnvRequestValidationError) Cause() error
- func (e UpdateEnvRequestValidationError) Error() string
- func (e UpdateEnvRequestValidationError) ErrorName() string
- func (e UpdateEnvRequestValidationError) Field() string
- func (e UpdateEnvRequestValidationError) Key() bool
- func (e UpdateEnvRequestValidationError) Reason() string
Constants ¶
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" )
const OperationServiceAddEnv = "/configure_env.Service/AddEnv"
const OperationServiceAllEnv = "/configure_env.Service/AllEnv"
const OperationServiceDeleteEnv = "/configure_env.Service/DeleteEnv"
const OperationServiceGetEnvToken = "/configure_env.Service/GetEnvToken"
const OperationServiceResetEnvToken = "/configure_env.Service/ResetEnvToken"
const OperationServiceUpdateEnv = "/configure_env.Service/UpdateEnv"
Variables ¶
var File_configure_env_proto protoreflect.FileDescriptor
var File_configure_env_service_proto protoreflect.FileDescriptor
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 ¶
func (e AddEnvReplyValidationError) Cause() error
Cause function returns cause value.
func (AddEnvReplyValidationError) Error ¶
func (e AddEnvReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AddEnvReplyValidationError) ErrorName ¶
func (e AddEnvReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AddEnvReplyValidationError) Field ¶
func (e AddEnvReplyValidationError) Field() string
Field function returns field value.
func (AddEnvReplyValidationError) Key ¶
func (e AddEnvReplyValidationError) Key() bool
Key function returns key value.
func (AddEnvReplyValidationError) Reason ¶
func (e AddEnvReplyValidationError) Reason() string
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 ¶
func (e AddEnvRequestValidationError) Cause() error
Cause function returns cause value.
func (AddEnvRequestValidationError) Error ¶
func (e AddEnvRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddEnvRequestValidationError) ErrorName ¶
func (e AddEnvRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddEnvRequestValidationError) Field ¶
func (e AddEnvRequestValidationError) Field() string
Field function returns field value.
func (AddEnvRequestValidationError) Key ¶
func (e AddEnvRequestValidationError) Key() bool
Key function returns key value.
func (AddEnvRequestValidationError) Reason ¶
func (e AddEnvRequestValidationError) Reason() string
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 ¶
func (e AllEnvReplyValidationError) Cause() error
Cause function returns cause value.
func (AllEnvReplyValidationError) Error ¶
func (e AllEnvReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AllEnvReplyValidationError) ErrorName ¶
func (e AllEnvReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AllEnvReplyValidationError) Field ¶
func (e AllEnvReplyValidationError) Field() string
Field function returns field value.
func (AllEnvReplyValidationError) Key ¶
func (e AllEnvReplyValidationError) Key() bool
Key function returns key value.
func (AllEnvReplyValidationError) Reason ¶
func (e AllEnvReplyValidationError) Reason() string
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 ¶
func (m AllEnvReply_EnvMultiError) Error() string
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 ¶
func (e AllEnvReply_EnvValidationError) Cause() error
Cause function returns cause value.
func (AllEnvReply_EnvValidationError) Error ¶
func (e AllEnvReply_EnvValidationError) Error() string
Error satisfies the builtin error interface
func (AllEnvReply_EnvValidationError) ErrorName ¶
func (e AllEnvReply_EnvValidationError) ErrorName() string
ErrorName returns error name.
func (AllEnvReply_EnvValidationError) Field ¶
func (e AllEnvReply_EnvValidationError) Field() string
Field function returns field value.
func (AllEnvReply_EnvValidationError) Key ¶
func (e AllEnvReply_EnvValidationError) Key() bool
Key function returns key value.
func (AllEnvReply_EnvValidationError) Reason ¶
func (e AllEnvReply_EnvValidationError) Reason() string
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 ¶
func (m DeleteEnvRequestMultiError) Error() string
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 ¶
func (e DeleteEnvRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteEnvRequestValidationError) Error ¶
func (e DeleteEnvRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteEnvRequestValidationError) ErrorName ¶
func (e DeleteEnvRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteEnvRequestValidationError) Field ¶
func (e DeleteEnvRequestValidationError) Field() string
Field function returns field value.
func (DeleteEnvRequestValidationError) Key ¶
func (e DeleteEnvRequestValidationError) Key() bool
Key function returns key value.
func (DeleteEnvRequestValidationError) Reason ¶
func (e DeleteEnvRequestValidationError) Reason() string
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 ¶
func (m GetEnvTokenReplyMultiError) Error() string
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 ¶
func (e GetEnvTokenReplyValidationError) Cause() error
Cause function returns cause value.
func (GetEnvTokenReplyValidationError) Error ¶
func (e GetEnvTokenReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetEnvTokenReplyValidationError) ErrorName ¶
func (e GetEnvTokenReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetEnvTokenReplyValidationError) Field ¶
func (e GetEnvTokenReplyValidationError) Field() string
Field function returns field value.
func (GetEnvTokenReplyValidationError) Key ¶
func (e GetEnvTokenReplyValidationError) Key() bool
Key function returns key value.
func (GetEnvTokenReplyValidationError) Reason ¶
func (e GetEnvTokenReplyValidationError) Reason() string
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 ¶
func (m GetEnvTokenRequestMultiError) Error() string
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 ¶
func (e GetEnvTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (GetEnvTokenRequestValidationError) Error ¶
func (e GetEnvTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetEnvTokenRequestValidationError) ErrorName ¶
func (e GetEnvTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetEnvTokenRequestValidationError) Field ¶
func (e GetEnvTokenRequestValidationError) Field() string
Field function returns field value.
func (GetEnvTokenRequestValidationError) Key ¶
func (e GetEnvTokenRequestValidationError) Key() bool
Key function returns key value.
func (GetEnvTokenRequestValidationError) Reason ¶
func (e GetEnvTokenRequestValidationError) Reason() string
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 ¶
func (m ResetEnvTokenReplyMultiError) Error() string
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 ¶
func (e ResetEnvTokenReplyValidationError) Cause() error
Cause function returns cause value.
func (ResetEnvTokenReplyValidationError) Error ¶
func (e ResetEnvTokenReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ResetEnvTokenReplyValidationError) ErrorName ¶
func (e ResetEnvTokenReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ResetEnvTokenReplyValidationError) Field ¶
func (e ResetEnvTokenReplyValidationError) Field() string
Field function returns field value.
func (ResetEnvTokenReplyValidationError) Key ¶
func (e ResetEnvTokenReplyValidationError) Key() bool
Key function returns key value.
func (ResetEnvTokenReplyValidationError) Reason ¶
func (e ResetEnvTokenReplyValidationError) Reason() string
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 ¶
func (m ResetEnvTokenRequestMultiError) Error() string
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 ¶
func (e ResetEnvTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (ResetEnvTokenRequestValidationError) Error ¶
func (e ResetEnvTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ResetEnvTokenRequestValidationError) ErrorName ¶
func (e ResetEnvTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ResetEnvTokenRequestValidationError) Field ¶
func (e ResetEnvTokenRequestValidationError) Field() string
Field function returns field value.
func (ResetEnvTokenRequestValidationError) Key ¶
func (e ResetEnvTokenRequestValidationError) Key() bool
Key function returns key value.
func (ResetEnvTokenRequestValidationError) Reason ¶
func (e ResetEnvTokenRequestValidationError) Reason() string
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 (c *ServiceHTTPClientImpl) AddEnv(ctx context.Context, in *AddEnvRequest, opts ...http.CallOption) (*AddEnvReply, error)
func (*ServiceHTTPClientImpl) AllEnv ¶
func (c *ServiceHTTPClientImpl) AllEnv(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*AllEnvReply, error)
func (*ServiceHTTPClientImpl) DeleteEnv ¶
func (c *ServiceHTTPClientImpl) DeleteEnv(ctx context.Context, in *DeleteEnvRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) GetEnvToken ¶
func (c *ServiceHTTPClientImpl) GetEnvToken(ctx context.Context, in *GetEnvTokenRequest, opts ...http.CallOption) (*GetEnvTokenReply, error)
func (*ServiceHTTPClientImpl) ResetEnvToken ¶
func (c *ServiceHTTPClientImpl) ResetEnvToken(ctx context.Context, in *ResetEnvTokenRequest, opts ...http.CallOption) (*ResetEnvTokenReply, error)
func (*ServiceHTTPClientImpl) UpdateEnv ¶
func (c *ServiceHTTPClientImpl) UpdateEnv(ctx context.Context, in *UpdateEnvRequest, opts ...http.CallOption) (*emptypb.Empty, error)
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) AddEnv(context.Context, *AddEnvRequest) (*AddEnvReply, error)
func (UnimplementedServiceServer) AllEnv ¶
func (UnimplementedServiceServer) AllEnv(context.Context, *emptypb.Empty) (*AllEnvReply, error)
func (UnimplementedServiceServer) DeleteEnv ¶
func (UnimplementedServiceServer) DeleteEnv(context.Context, *DeleteEnvRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) GetEnvToken ¶
func (UnimplementedServiceServer) GetEnvToken(context.Context, *GetEnvTokenRequest) (*GetEnvTokenReply, error)
func (UnimplementedServiceServer) ResetEnvToken ¶
func (UnimplementedServiceServer) ResetEnvToken(context.Context, *ResetEnvTokenRequest) (*ResetEnvTokenReply, error)
func (UnimplementedServiceServer) UpdateEnv ¶
func (UnimplementedServiceServer) UpdateEnv(context.Context, *UpdateEnvRequest) (*emptypb.Empty, error)
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 ¶
func (m UpdateEnvRequestMultiError) Error() string
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 ¶
func (e UpdateEnvRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateEnvRequestValidationError) Error ¶
func (e UpdateEnvRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateEnvRequestValidationError) ErrorName ¶
func (e UpdateEnvRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateEnvRequestValidationError) Field ¶
func (e UpdateEnvRequestValidationError) Field() string
Field function returns field value.
func (UpdateEnvRequestValidationError) Key ¶
func (e UpdateEnvRequestValidationError) Key() bool
Key function returns key value.
func (UpdateEnvRequestValidationError) Reason ¶
func (e UpdateEnvRequestValidationError) Reason() string
Reason function returns reason value.