Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMetaServiceServer(s grpc.ServiceRegistrar, srv MetaServiceServer)
- type CreateServiceRequest
- func (*CreateServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateServiceRequest) GetDescription() string
- func (x *CreateServiceRequest) GetDomain() string
- func (x *CreateServiceRequest) GetEnabled() bool
- func (x *CreateServiceRequest) GetName() string
- func (x *CreateServiceRequest) GetNamespace() string
- func (x *CreateServiceRequest) GetOwner() string
- func (x *CreateServiceRequest) GetTags() map[string]string
- func (x *CreateServiceRequest) GetType() Type
- func (*CreateServiceRequest) ProtoMessage()
- func (x *CreateServiceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateServiceRequest) Reset()
- func (x *CreateServiceRequest) String() string
- func (req *CreateServiceRequest) Validate() error
- type Credential
- func (*Credential) Descriptor() ([]byte, []int)deprecated
- func (x *Credential) GetClientId() string
- func (x *Credential) GetClientSecret() string
- func (x *Credential) GetEnabled() bool
- func (x *Credential) GetUpdateAt() int64
- func (*Credential) ProtoMessage()
- func (x *Credential) ProtoReflect() protoreflect.Message
- func (x *Credential) Reset()
- func (x *Credential) String() string
- func (c *Credential) Validate(clientSecret string) error
- type DeleteServiceRequest
- func (*DeleteServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteServiceRequest) GetId() string
- func (*DeleteServiceRequest) ProtoMessage()
- func (x *DeleteServiceRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteServiceRequest) Reset()
- func (x *DeleteServiceRequest) String() string
- type DescribeBy
- type DescribeServiceRequest
- func (*DescribeServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeServiceRequest) GetClientId() string
- func (x *DescribeServiceRequest) GetDescribeBy() DescribeBy
- func (x *DescribeServiceRequest) GetId() string
- func (x *DescribeServiceRequest) GetName() string
- func (*DescribeServiceRequest) ProtoMessage()
- func (x *DescribeServiceRequest) ProtoReflect() protoreflect.Message
- func (x *DescribeServiceRequest) Reset()
- func (x *DescribeServiceRequest) String() string
- type MetaServiceClient
- type MetaServiceServer
- type QueryServiceRequest
- func (*QueryServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryServiceRequest) GetPage() *request1.PageRequest
- func (x *QueryServiceRequest) GetType() Type
- func (*QueryServiceRequest) ProtoMessage()
- func (x *QueryServiceRequest) ProtoReflect() protoreflect.Message
- func (x *QueryServiceRequest) Reset()
- func (x *QueryServiceRequest) String() string
- type Security
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (i *Service) FullName() string
- func (i *Service) FullNameHash() string
- func (x *Service) GetCreateAt() int64
- func (x *Service) GetCredential() *Credential
- func (x *Service) GetId() string
- func (x *Service) GetSecurity() *Security
- func (x *Service) GetSpec() *CreateServiceRequest
- func (x *Service) GetUpdateAt() int64
- func (x *Service) GetUpdateBy() string
- func (i *Service) Patch(req *UpdateServiceRequest) error
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- func (i *Service) Update(req *UpdateServiceRequest)
- type ServiceSet
- func (s *ServiceSet) Add(item *Service)
- func (*ServiceSet) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceSet) GetItems() []*Service
- func (x *ServiceSet) GetTotal() int64
- func (*ServiceSet) ProtoMessage()
- func (x *ServiceSet) ProtoReflect() protoreflect.Message
- func (x *ServiceSet) Reset()
- func (x *ServiceSet) String() string
- type Type
- type UnimplementedMetaServiceServer
- func (UnimplementedMetaServiceServer) CreateService(context.Context, *CreateServiceRequest) (*Service, error)
- func (UnimplementedMetaServiceServer) DeleteService(context.Context, *DeleteServiceRequest) (*Service, error)
- func (UnimplementedMetaServiceServer) DescribeService(context.Context, *DescribeServiceRequest) (*Service, error)
- func (UnimplementedMetaServiceServer) QueryService(context.Context, *QueryServiceRequest) (*ServiceSet, error)
- func (UnimplementedMetaServiceServer) RefreshCredential(context.Context, *DescribeServiceRequest) (*Service, error)
- func (UnimplementedMetaServiceServer) UpdateService(context.Context, *UpdateServiceRequest) (*Service, error)
- func (UnimplementedMetaServiceServer) ValidateCredential(context.Context, *ValidateCredentialRequest) (*Service, error)
- type UnsafeMetaServiceServer
- type UpdateServiceRequest
- func (*UpdateServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateServiceRequest) GetId() string
- func (x *UpdateServiceRequest) GetSpec() *CreateServiceRequest
- func (x *UpdateServiceRequest) GetUpdateAt() int64
- func (x *UpdateServiceRequest) GetUpdateBy() string
- func (x *UpdateServiceRequest) GetUpdateMode() request.UpdateMode
- func (*UpdateServiceRequest) ProtoMessage()
- func (x *UpdateServiceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateServiceRequest) Reset()
- func (x *UpdateServiceRequest) String() string
- type ValidateCredentialRequest
- func (*ValidateCredentialRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateCredentialRequest) GetClientId() string
- func (x *ValidateCredentialRequest) GetClientSecret() string
- func (*ValidateCredentialRequest) ProtoMessage()
- func (x *ValidateCredentialRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateCredentialRequest) Reset()
- func (x *ValidateCredentialRequest) String() string
Constants ¶
const ( DefaultDomain = "default" DefaultNamespace = "default" )
const (
AppName = "service"
)
Variables ¶
var ( Type_name = map[int32]string{ 0: "SYSTEM", 1: "USER", 9: "THIRD", } Type_value = map[string]int32{ "SYSTEM": 0, "USER": 1, "THIRD": 9, } )
Enum value maps for Type.
var ( DescribeBy_name = map[int32]string{ 0: "SERVICE_ID", 1: "SERVICE_NAME", 2: "SERVICE_CLIENT_ID", } DescribeBy_value = map[string]int32{ "SERVICE_ID": 0, "SERVICE_NAME": 1, "SERVICE_CLIENT_ID": 2, } )
Enum value maps for DescribeBy.
var File_apps_service_pb_service_impl_proto protoreflect.FileDescriptor
var MetaService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gitee.com.MinKoU.mcenter.service.MetaService", HandlerType: (*MetaServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ValidateCredential", Handler: _MetaService_ValidateCredential_Handler, }, { MethodName: "CreateService", Handler: _MetaService_CreateService_Handler, }, { MethodName: "UpdateService", Handler: _MetaService_UpdateService_Handler, }, { MethodName: "QueryService", Handler: _MetaService_QueryService_Handler, }, { MethodName: "DescribeService", Handler: _MetaService_DescribeService_Handler, }, { MethodName: "DeleteService", Handler: _MetaService_DeleteService_Handler, }, { MethodName: "RefreshCredential", Handler: _MetaService_RefreshCredential_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "apps/service/pb/service_impl.proto", }
MetaService_ServiceDesc is the grpc.ServiceDesc for MetaService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMetaServiceServer ¶
func RegisterMetaServiceServer(s grpc.ServiceRegistrar, srv MetaServiceServer)
Types ¶
type CreateServiceRequest ¶
type CreateServiceRequest struct { // 服务所属域 // @gotags: bson:"domain" json:"domain" Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain" bson:"domain"` // 服务所属空间 // @gotags: bson:"namespace" json:"namespace" Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace" bson:"namespace"` // 应用所有者 // @gotags: bson:"owner" json:"owner" Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner" bson:"owner"` // 是否启用该服务, 服务如果被停用,将不会被发现 // @gotags: bson:"enabled" json:"enabled" Enabled bool `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled" bson:"enabled"` // 服务类型 // @gotags: bson:"type" json:"type" Type Type `protobuf:"varint,5,opt,name=type,proto3,enum=gitee.com.MinKoU.mcenter.service.Type" json:"type" bson:"type"` // 服务名称 // @gotags: bson:"name" json:"name" Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name" bson:"name"` // 服务描述信息 // @gotags: bson:"description" json:"description" Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description" bson:"description"` // 服务标签 // @gotags: bson:"tags" json:"tags" Tags map[string]string `` /* 152-byte string literal not displayed */ // contains filtered or unexported fields }
func NewCreateServiceRequest ¶
func NewCreateServiceRequest() *CreateServiceRequest
func (*CreateServiceRequest) Descriptor
deprecated
func (*CreateServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateServiceRequest.ProtoReflect.Descriptor instead.
func (*CreateServiceRequest) GetDescription ¶
func (x *CreateServiceRequest) GetDescription() string
func (*CreateServiceRequest) GetDomain ¶
func (x *CreateServiceRequest) GetDomain() string
func (*CreateServiceRequest) GetEnabled ¶
func (x *CreateServiceRequest) GetEnabled() bool
func (*CreateServiceRequest) GetName ¶
func (x *CreateServiceRequest) GetName() string
func (*CreateServiceRequest) GetNamespace ¶
func (x *CreateServiceRequest) GetNamespace() string
func (*CreateServiceRequest) GetOwner ¶
func (x *CreateServiceRequest) GetOwner() string
func (*CreateServiceRequest) GetTags ¶
func (x *CreateServiceRequest) GetTags() map[string]string
func (*CreateServiceRequest) GetType ¶
func (x *CreateServiceRequest) GetType() Type
func (*CreateServiceRequest) ProtoMessage ¶
func (*CreateServiceRequest) ProtoMessage()
func (*CreateServiceRequest) ProtoReflect ¶
func (x *CreateServiceRequest) ProtoReflect() protoreflect.Message
func (*CreateServiceRequest) Reset ¶
func (x *CreateServiceRequest) Reset()
func (*CreateServiceRequest) String ¶
func (x *CreateServiceRequest) String() string
func (*CreateServiceRequest) Validate ¶
func (req *CreateServiceRequest) Validate() error
type Credential ¶
type Credential struct { // 是否启动客户端 // @gotags: bson:"enabled" json:"enabled" Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled" bson:"enabled"` // 凭证更新时间 // @gotags: bson:"update_at" json:"update_at" UpdateAt int64 `protobuf:"varint,2,opt,name=update_at,json=updateAt,proto3" json:"update_at" bson:"update_at"` // 服务客户端ID // @gotags: bson:"client_id" json:"client_id" ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id" bson:"client_id"` // 服务客户端凭证 // @gotags: bson:"client_secret" json:"client_secret" ClientSecret string `protobuf:"bytes,4,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret" bson:"client_secret"` // contains filtered or unexported fields }
func NewRandomCredential ¶
func NewRandomCredential() *Credential
func (*Credential) Descriptor
deprecated
func (*Credential) Descriptor() ([]byte, []int)
Deprecated: Use Credential.ProtoReflect.Descriptor instead.
func (*Credential) GetClientId ¶
func (x *Credential) GetClientId() string
func (*Credential) GetClientSecret ¶
func (x *Credential) GetClientSecret() string
func (*Credential) GetEnabled ¶
func (x *Credential) GetEnabled() bool
func (*Credential) GetUpdateAt ¶
func (x *Credential) GetUpdateAt() int64
func (*Credential) ProtoMessage ¶
func (*Credential) ProtoMessage()
func (*Credential) ProtoReflect ¶
func (x *Credential) ProtoReflect() protoreflect.Message
func (*Credential) Reset ¶
func (x *Credential) Reset()
func (*Credential) String ¶
func (x *Credential) String() string
func (*Credential) Validate ¶
func (c *Credential) Validate(clientSecret string) error
type DeleteServiceRequest ¶
type DeleteServiceRequest struct { // @gotags: json:"id" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` // contains filtered or unexported fields }
DeleteMicroRequest todo
func NewDeleteServiceRequestWithID ¶
func NewDeleteServiceRequestWithID(id string) *DeleteServiceRequest
func (*DeleteServiceRequest) Descriptor
deprecated
func (*DeleteServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteServiceRequest.ProtoReflect.Descriptor instead.
func (*DeleteServiceRequest) GetId ¶
func (x *DeleteServiceRequest) GetId() string
func (*DeleteServiceRequest) ProtoMessage ¶
func (*DeleteServiceRequest) ProtoMessage()
func (*DeleteServiceRequest) ProtoReflect ¶
func (x *DeleteServiceRequest) ProtoReflect() protoreflect.Message
func (*DeleteServiceRequest) Reset ¶
func (x *DeleteServiceRequest) Reset()
func (*DeleteServiceRequest) String ¶
func (x *DeleteServiceRequest) String() string
type DescribeBy ¶
type DescribeBy int32
const ( // 通过service id查询应用详情 DescribeBy_SERVICE_ID DescribeBy = 0 // 通过service name查询应用详情 DescribeBy_SERVICE_NAME DescribeBy = 1 // 通过service client_id查询应用详情 DescribeBy_SERVICE_CLIENT_ID DescribeBy = 2 )
func (DescribeBy) Descriptor ¶
func (DescribeBy) Descriptor() protoreflect.EnumDescriptor
func (DescribeBy) Enum ¶
func (x DescribeBy) Enum() *DescribeBy
func (DescribeBy) EnumDescriptor
deprecated
func (DescribeBy) EnumDescriptor() ([]byte, []int)
Deprecated: Use DescribeBy.Descriptor instead.
func (DescribeBy) Number ¶
func (x DescribeBy) Number() protoreflect.EnumNumber
func (DescribeBy) String ¶
func (x DescribeBy) String() string
func (DescribeBy) Type ¶
func (DescribeBy) Type() protoreflect.EnumType
type DescribeServiceRequest ¶
type DescribeServiceRequest struct { // @gotags: json:"describe_by" DescribeBy DescribeBy `` /* 131-byte string literal not displayed */ // @gotags: json:"client_id" ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id"` // @gotags: json:"name" Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name"` // @gotags: json:"id" Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id"` // contains filtered or unexported fields }
DescribeMicroRequest 查询应用详情
func NewDescribeServiceRequest ¶
func NewDescribeServiceRequest(id string) *DescribeServiceRequest
func NewDescribeServiceRequestByClientId ¶
func NewDescribeServiceRequestByClientId(clientId string) *DescribeServiceRequest
func (*DescribeServiceRequest) Descriptor
deprecated
func (*DescribeServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DescribeServiceRequest.ProtoReflect.Descriptor instead.
func (*DescribeServiceRequest) GetClientId ¶
func (x *DescribeServiceRequest) GetClientId() string
func (*DescribeServiceRequest) GetDescribeBy ¶
func (x *DescribeServiceRequest) GetDescribeBy() DescribeBy
func (*DescribeServiceRequest) GetId ¶
func (x *DescribeServiceRequest) GetId() string
func (*DescribeServiceRequest) GetName ¶
func (x *DescribeServiceRequest) GetName() string
func (*DescribeServiceRequest) ProtoMessage ¶
func (*DescribeServiceRequest) ProtoMessage()
func (*DescribeServiceRequest) ProtoReflect ¶
func (x *DescribeServiceRequest) ProtoReflect() protoreflect.Message
func (*DescribeServiceRequest) Reset ¶
func (x *DescribeServiceRequest) Reset()
func (*DescribeServiceRequest) String ¶
func (x *DescribeServiceRequest) String() string
type MetaServiceClient ¶
type MetaServiceClient interface { ValidateCredential(ctx context.Context, in *ValidateCredentialRequest, opts ...grpc.CallOption) (*Service, error) CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*Service, error) UpdateService(ctx context.Context, in *UpdateServiceRequest, opts ...grpc.CallOption) (*Service, error) QueryService(ctx context.Context, in *QueryServiceRequest, opts ...grpc.CallOption) (*ServiceSet, error) DescribeService(ctx context.Context, in *DescribeServiceRequest, opts ...grpc.CallOption) (*Service, error) DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*Service, error) RefreshCredential(ctx context.Context, in *DescribeServiceRequest, opts ...grpc.CallOption) (*Service, error) }
MetaServiceClient is the client API for MetaService 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 NewMetaServiceClient ¶
func NewMetaServiceClient(cc grpc.ClientConnInterface) MetaServiceClient
type MetaServiceServer ¶
type MetaServiceServer interface { ValidateCredential(context.Context, *ValidateCredentialRequest) (*Service, error) CreateService(context.Context, *CreateServiceRequest) (*Service, error) UpdateService(context.Context, *UpdateServiceRequest) (*Service, error) QueryService(context.Context, *QueryServiceRequest) (*ServiceSet, error) DescribeService(context.Context, *DescribeServiceRequest) (*Service, error) DeleteService(context.Context, *DeleteServiceRequest) (*Service, error) RefreshCredential(context.Context, *DescribeServiceRequest) (*Service, error) // contains filtered or unexported methods }
MetaServiceServer is the server API for MetaService service. All implementations must embed UnimplementedMetaServiceServer for forward compatibility
type QueryServiceRequest ¶
type QueryServiceRequest struct { // @gotags: json:"page" Page *request1.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page"` // 服务类型 // @gotags: json:"type" Type Type `protobuf:"varint,2,opt,name=type,proto3,enum=gitee.com.MinKoU.mcenter.service.Type" json:"type"` // contains filtered or unexported fields }
QueryMicroRequest 查询应用列表
func NewQueryServiceRequest ¶
func NewQueryServiceRequest() *QueryServiceRequest
func NewQueryServiceRequestFromHTTP ¶
func NewQueryServiceRequestFromHTTP(r *http.Request) *QueryServiceRequest
func (*QueryServiceRequest) Descriptor
deprecated
func (*QueryServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryServiceRequest.ProtoReflect.Descriptor instead.
func (*QueryServiceRequest) GetPage ¶
func (x *QueryServiceRequest) GetPage() *request1.PageRequest
func (*QueryServiceRequest) GetType ¶
func (x *QueryServiceRequest) GetType() Type
func (*QueryServiceRequest) ProtoMessage ¶
func (*QueryServiceRequest) ProtoMessage()
func (*QueryServiceRequest) ProtoReflect ¶
func (x *QueryServiceRequest) ProtoReflect() protoreflect.Message
func (*QueryServiceRequest) Reset ¶
func (x *QueryServiceRequest) Reset()
func (*QueryServiceRequest) String ¶
func (x *QueryServiceRequest) String() string
type Security ¶
type Security struct { // 用于加密应用的铭感信息的key // @gotags: bson:"encrypt_key" json:"encrypt_key" EncryptKey string `protobuf:"bytes,1,opt,name=encrypt_key,json=encryptKey,proto3" json:"encrypt_key" bson:"encrypt_key"` // contains filtered or unexported fields }
服务安全相关信息
func NewRandomSecurity ¶
func NewRandomSecurity() *Security
func (*Security) Descriptor
deprecated
func (*Security) GetEncryptKey ¶
func (*Security) ProtoMessage ¶
func (*Security) ProtoMessage()
func (*Security) ProtoReflect ¶
func (x *Security) ProtoReflect() protoreflect.Message
type Service ¶
type Service struct { // 微服务ID // @gotags: bson:"_id" json:"id" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` // 创建的时间 // @gotags: bson:"create_at" json:"create_at" CreateAt int64 `protobuf:"varint,4,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"` // 更新时间 // @gotags: bson:"update_at" json:"update_at" UpdateAt int64 `protobuf:"varint,5,opt,name=update_at,json=updateAt,proto3" json:"update_at" bson:"update_at"` // 更新人 // @gotags: bson:"update_by" json:"update_by" UpdateBy string `protobuf:"bytes,6,opt,name=update_by,json=updateBy,proto3" json:"update_by" bson:"update_by"` // 服务定义 // @gotags: bson:"spec" json:"spec" Spec *CreateServiceRequest `protobuf:"bytes,7,opt,name=spec,proto3" json:"spec" bson:"spec"` // 服务的凭证, 用于服务注册 // @gotags: bson:"credential" json:"credential" Credential *Credential `protobuf:"bytes,8,opt,name=credential,proto3" json:"credential" bson:"credential"` // 服务安全所需配置 // @gotags: bson:"security" json:"security" Security *Security `protobuf:"bytes,9,opt,name=security,proto3" json:"security" bson:"security"` // contains filtered or unexported fields }
Service is service provider
func NewDefaultService ¶
func NewDefaultService() *Service
func NewService ¶
func NewService(req *CreateServiceRequest) (*Service, error)
func (*Service) Descriptor
deprecated
func (*Service) FullNameHash ¶
func (*Service) GetCreateAt ¶
func (*Service) GetCredential ¶
func (x *Service) GetCredential() *Credential
func (*Service) GetSecurity ¶
func (*Service) GetSpec ¶
func (x *Service) GetSpec() *CreateServiceRequest
func (*Service) GetUpdateAt ¶
func (*Service) GetUpdateBy ¶
func (*Service) Patch ¶
func (i *Service) Patch(req *UpdateServiceRequest) error
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
func (*Service) Update ¶
func (i *Service) Update(req *UpdateServiceRequest)
type ServiceSet ¶
type ServiceSet struct { // @gotags: bson:"total" json:"total" Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"` // @gotags: bson:"items" json:"items" Items []*Service `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"` // contains filtered or unexported fields }
func NewServiceSet ¶
func NewServiceSet() *ServiceSet
func (*ServiceSet) Add ¶
func (s *ServiceSet) Add(item *Service)
func (*ServiceSet) Descriptor
deprecated
func (*ServiceSet) Descriptor() ([]byte, []int)
Deprecated: Use ServiceSet.ProtoReflect.Descriptor instead.
func (*ServiceSet) GetItems ¶
func (x *ServiceSet) GetItems() []*Service
func (*ServiceSet) GetTotal ¶
func (x *ServiceSet) GetTotal() int64
func (*ServiceSet) ProtoMessage ¶
func (*ServiceSet) ProtoMessage()
func (*ServiceSet) ProtoReflect ¶
func (x *ServiceSet) ProtoReflect() protoreflect.Message
func (*ServiceSet) Reset ¶
func (x *ServiceSet) Reset()
func (*ServiceSet) String ¶
func (x *ServiceSet) String() string
type Type ¶
type Type int32
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
type UnimplementedMetaServiceServer ¶
type UnimplementedMetaServiceServer struct { }
UnimplementedMetaServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMetaServiceServer) CreateService ¶
func (UnimplementedMetaServiceServer) CreateService(context.Context, *CreateServiceRequest) (*Service, error)
func (UnimplementedMetaServiceServer) DeleteService ¶
func (UnimplementedMetaServiceServer) DeleteService(context.Context, *DeleteServiceRequest) (*Service, error)
func (UnimplementedMetaServiceServer) DescribeService ¶
func (UnimplementedMetaServiceServer) DescribeService(context.Context, *DescribeServiceRequest) (*Service, error)
func (UnimplementedMetaServiceServer) QueryService ¶
func (UnimplementedMetaServiceServer) QueryService(context.Context, *QueryServiceRequest) (*ServiceSet, error)
func (UnimplementedMetaServiceServer) RefreshCredential ¶
func (UnimplementedMetaServiceServer) RefreshCredential(context.Context, *DescribeServiceRequest) (*Service, error)
func (UnimplementedMetaServiceServer) UpdateService ¶
func (UnimplementedMetaServiceServer) UpdateService(context.Context, *UpdateServiceRequest) (*Service, error)
func (UnimplementedMetaServiceServer) ValidateCredential ¶
func (UnimplementedMetaServiceServer) ValidateCredential(context.Context, *ValidateCredentialRequest) (*Service, error)
type UnsafeMetaServiceServer ¶
type UnsafeMetaServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMetaServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetaServiceServer will result in compilation errors.
type UpdateServiceRequest ¶
type UpdateServiceRequest struct { // book id // @gotags: json:"id" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` // 更新模式 // @gotags: json:"update_mode" UpdateMode request.UpdateMode `protobuf:"varint,2,opt,name=update_mode,json=updateMode,proto3,enum=infraboard.mcube.request.UpdateMode" json:"update_mode"` // 更新人 // @gotags: json:"update_by" UpdateBy string `protobuf:"bytes,3,opt,name=update_by,json=updateBy,proto3" json:"update_by"` // 更新时间 // @gotags: json:"update_at" UpdateAt int64 `protobuf:"varint,4,opt,name=update_at,json=updateAt,proto3" json:"update_at"` // 更新的书本信息 // @gotags: json:"spec" Spec *CreateServiceRequest `protobuf:"bytes,5,opt,name=spec,proto3" json:"spec"` // contains filtered or unexported fields }
func NewPatchServiceRequest ¶
func NewPatchServiceRequest(id string) *UpdateServiceRequest
func NewPutServiceRequest ¶
func NewPutServiceRequest(id string) *UpdateServiceRequest
func NewUpdateServiceRequest ¶
func NewUpdateServiceRequest(id string) *UpdateServiceRequest
func (*UpdateServiceRequest) Descriptor
deprecated
func (*UpdateServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateServiceRequest.ProtoReflect.Descriptor instead.
func (*UpdateServiceRequest) GetId ¶
func (x *UpdateServiceRequest) GetId() string
func (*UpdateServiceRequest) GetSpec ¶
func (x *UpdateServiceRequest) GetSpec() *CreateServiceRequest
func (*UpdateServiceRequest) GetUpdateAt ¶
func (x *UpdateServiceRequest) GetUpdateAt() int64
func (*UpdateServiceRequest) GetUpdateBy ¶
func (x *UpdateServiceRequest) GetUpdateBy() string
func (*UpdateServiceRequest) GetUpdateMode ¶
func (x *UpdateServiceRequest) GetUpdateMode() request.UpdateMode
func (*UpdateServiceRequest) ProtoMessage ¶
func (*UpdateServiceRequest) ProtoMessage()
func (*UpdateServiceRequest) ProtoReflect ¶
func (x *UpdateServiceRequest) ProtoReflect() protoreflect.Message
func (*UpdateServiceRequest) Reset ¶
func (x *UpdateServiceRequest) Reset()
func (*UpdateServiceRequest) String ¶
func (x *UpdateServiceRequest) String() string
type ValidateCredentialRequest ¶
type ValidateCredentialRequest struct { // 服务客户端ID // @gotags: json:"client_id" validate:"required,lte=100" ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id" validate:"required,lte=100"` // 服务客户端凭证 // @gotags: json:"client_secret" validate:"required,lte=100" ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret" validate:"required,lte=100"` // contains filtered or unexported fields }
ValidateCredentialRequest 校验服务凭证
func NewValidateCredentialRequest ¶
func NewValidateCredentialRequest(clientId, clientSercet string) *ValidateCredentialRequest
func (*ValidateCredentialRequest) Descriptor
deprecated
func (*ValidateCredentialRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateCredentialRequest.ProtoReflect.Descriptor instead.
func (*ValidateCredentialRequest) GetClientId ¶
func (x *ValidateCredentialRequest) GetClientId() string
func (*ValidateCredentialRequest) GetClientSecret ¶
func (x *ValidateCredentialRequest) GetClientSecret() string
func (*ValidateCredentialRequest) ProtoMessage ¶
func (*ValidateCredentialRequest) ProtoMessage()
func (*ValidateCredentialRequest) ProtoReflect ¶
func (x *ValidateCredentialRequest) ProtoReflect() protoreflect.Message
func (*ValidateCredentialRequest) Reset ¶
func (x *ValidateCredentialRequest) Reset()
func (*ValidateCredentialRequest) String ¶
func (x *ValidateCredentialRequest) String() string