Documentation ¶
Index ¶
- Variables
- func NewCertificateEndpoints() []*api.Endpoint
- func NewHealthyEndpoints() []*api.Endpoint
- func NewKeyEndpoints() []*api.Endpoint
- func NewSpaceEndpoints() []*api.Endpoint
- func RegisterCertificateHandler(s server.Server, hdlr CertificateHandler, opts ...server.HandlerOption) error
- func RegisterHealthyHandler(s server.Server, hdlr HealthyHandler, opts ...server.HandlerOption) error
- func RegisterKeyHandler(s server.Server, hdlr KeyHandler, opts ...server.HandlerOption) error
- func RegisterSpaceHandler(s server.Server, hdlr SpaceHandler, opts ...server.HandlerOption) error
- type BlankResponse
- type CerGetRequest
- type CerGetResponse
- func (*CerGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CerGetResponse) GetCer() *CertificateEntity
- func (x *CerGetResponse) GetStatus() *Status
- func (*CerGetResponse) ProtoMessage()
- func (x *CerGetResponse) ProtoReflect() protoreflect.Message
- func (x *CerGetResponse) Reset()
- func (x *CerGetResponse) String() string
- type CerListRequest
- func (*CerListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CerListRequest) GetCount() int64
- func (x *CerListRequest) GetOffset() int64
- func (x *CerListRequest) GetSpace() string
- func (*CerListRequest) ProtoMessage()
- func (x *CerListRequest) ProtoReflect() protoreflect.Message
- func (x *CerListRequest) Reset()
- func (x *CerListRequest) String() string
- type CerListResponse
- func (*CerListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CerListResponse) GetCer() []*CertificateEntity
- func (x *CerListResponse) GetStatus() *Status
- func (x *CerListResponse) GetTotal() int64
- func (*CerListResponse) ProtoMessage()
- func (x *CerListResponse) ProtoReflect() protoreflect.Message
- func (x *CerListResponse) Reset()
- func (x *CerListResponse) String() string
- type CerPullRequest
- func (*CerPullRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CerPullRequest) GetConsumer() string
- func (x *CerPullRequest) GetSpace() string
- func (*CerPullRequest) ProtoMessage()
- func (x *CerPullRequest) ProtoReflect() protoreflect.Message
- func (x *CerPullRequest) Reset()
- func (x *CerPullRequest) String() string
- type CerPullResponse
- func (*CerPullResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CerPullResponse) GetCer() *CertificateEntity
- func (x *CerPullResponse) GetStatus() *Status
- func (*CerPullResponse) ProtoMessage()
- func (x *CerPullResponse) ProtoReflect() protoreflect.Message
- func (x *CerPullResponse) Reset()
- func (x *CerPullResponse) String() string
- type CerSearchRequest
- func (*CerSearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CerSearchRequest) GetConsumer() string
- func (x *CerSearchRequest) GetCount() int64
- func (x *CerSearchRequest) GetNumber() string
- func (x *CerSearchRequest) GetOffset() int64
- func (x *CerSearchRequest) GetSpace() string
- func (*CerSearchRequest) ProtoMessage()
- func (x *CerSearchRequest) ProtoReflect() protoreflect.Message
- func (x *CerSearchRequest) Reset()
- func (x *CerSearchRequest) String() string
- type CertificateEntity
- func (*CertificateEntity) Descriptor() ([]byte, []int)deprecated
- func (x *CertificateEntity) GetConsumer() string
- func (x *CertificateEntity) GetContent() string
- func (x *CertificateEntity) GetCreatedAt() int64
- func (x *CertificateEntity) GetNumber() string
- func (x *CertificateEntity) GetSpace() string
- func (x *CertificateEntity) GetUuid() string
- func (*CertificateEntity) ProtoMessage()
- func (x *CertificateEntity) ProtoReflect() protoreflect.Message
- func (x *CertificateEntity) Reset()
- func (x *CertificateEntity) String() string
- type CertificateHandler
- type CertificateService
- type EchoRequest
- type EchoResponse
- type HealthyHandler
- type HealthyService
- type KeyActivateRequest
- func (*KeyActivateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeyActivateRequest) GetConsumer() string
- func (x *KeyActivateRequest) GetNumber() string
- func (x *KeyActivateRequest) GetSpace() string
- func (*KeyActivateRequest) ProtoMessage()
- func (x *KeyActivateRequest) ProtoReflect() protoreflect.Message
- func (x *KeyActivateRequest) Reset()
- func (x *KeyActivateRequest) String() string
- type KeyActivateResponse
- func (*KeyActivateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KeyActivateResponse) GetCerContent() string
- func (x *KeyActivateResponse) GetCerUID() string
- func (x *KeyActivateResponse) GetStatus() *Status
- func (x *KeyActivateResponse) GetUuid() string
- func (*KeyActivateResponse) ProtoMessage()
- func (x *KeyActivateResponse) ProtoReflect() protoreflect.Message
- func (x *KeyActivateResponse) Reset()
- func (x *KeyActivateResponse) String() string
- type KeyEntity
- func (*KeyEntity) Descriptor() ([]byte, []int)deprecated
- func (x *KeyEntity) GetActivatedAt() int64
- func (x *KeyEntity) GetBan() int32
- func (x *KeyEntity) GetCapacity() int32
- func (x *KeyEntity) GetConsumer() []string
- func (x *KeyEntity) GetCreatedAt() int64
- func (x *KeyEntity) GetExpiry() int32
- func (x *KeyEntity) GetNumber() string
- func (x *KeyEntity) GetProfile() string
- func (x *KeyEntity) GetReason() string
- func (x *KeyEntity) GetSpace() string
- func (x *KeyEntity) GetStorage() string
- func (x *KeyEntity) GetUpdatedAt() int64
- func (x *KeyEntity) GetUuid() string
- func (*KeyEntity) ProtoMessage()
- func (x *KeyEntity) ProtoReflect() protoreflect.Message
- func (x *KeyEntity) Reset()
- func (x *KeyEntity) String() string
- type KeyGenerateRequest
- func (*KeyGenerateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeyGenerateRequest) GetCapacity() int32
- func (x *KeyGenerateRequest) GetCount() int32
- func (x *KeyGenerateRequest) GetExpiry() int32
- func (x *KeyGenerateRequest) GetProfile() string
- func (x *KeyGenerateRequest) GetSpace() string
- func (x *KeyGenerateRequest) GetStorage() string
- func (*KeyGenerateRequest) ProtoMessage()
- func (x *KeyGenerateRequest) ProtoReflect() protoreflect.Message
- func (x *KeyGenerateRequest) Reset()
- func (x *KeyGenerateRequest) String() string
- type KeyGenerateResponse
- func (*KeyGenerateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KeyGenerateResponse) GetNumber() []string
- func (x *KeyGenerateResponse) GetStatus() *Status
- func (*KeyGenerateResponse) ProtoMessage()
- func (x *KeyGenerateResponse) ProtoReflect() protoreflect.Message
- func (x *KeyGenerateResponse) Reset()
- func (x *KeyGenerateResponse) String() string
- type KeyGetRequest
- type KeyGetResponse
- func (*KeyGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KeyGetResponse) GetKey() *KeyEntity
- func (x *KeyGetResponse) GetStatus() *Status
- func (*KeyGetResponse) ProtoMessage()
- func (x *KeyGetResponse) ProtoReflect() protoreflect.Message
- func (x *KeyGetResponse) Reset()
- func (x *KeyGetResponse) String() string
- type KeyHandler
- type KeyListRequest
- func (*KeyListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeyListRequest) GetCount() int64
- func (x *KeyListRequest) GetOffset() int64
- func (x *KeyListRequest) GetSpace() string
- func (*KeyListRequest) ProtoMessage()
- func (x *KeyListRequest) ProtoReflect() protoreflect.Message
- func (x *KeyListRequest) Reset()
- func (x *KeyListRequest) String() string
- type KeyListResponse
- func (*KeyListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KeyListResponse) GetKey() []*KeyEntity
- func (x *KeyListResponse) GetStatus() *Status
- func (x *KeyListResponse) GetTotal() int64
- func (*KeyListResponse) ProtoMessage()
- func (x *KeyListResponse) ProtoReflect() protoreflect.Message
- func (x *KeyListResponse) Reset()
- func (x *KeyListResponse) String() string
- type KeySearchRequest
- func (*KeySearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeySearchRequest) GetBan() int32
- func (x *KeySearchRequest) GetCapacity() int32
- func (x *KeySearchRequest) GetCount() int64
- func (x *KeySearchRequest) GetExpiry() int32
- func (x *KeySearchRequest) GetNumber() string
- func (x *KeySearchRequest) GetOffset() int64
- func (x *KeySearchRequest) GetProfile() string
- func (x *KeySearchRequest) GetSpace() string
- func (x *KeySearchRequest) GetStorage() string
- func (*KeySearchRequest) ProtoMessage()
- func (x *KeySearchRequest) ProtoReflect() protoreflect.Message
- func (x *KeySearchRequest) Reset()
- func (x *KeySearchRequest) String() string
- type KeyService
- type KeyUpdateRequest
- func (*KeyUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeyUpdateRequest) GetBan() int32
- func (x *KeyUpdateRequest) GetProfile() string
- func (x *KeyUpdateRequest) GetReason() string
- func (x *KeyUpdateRequest) GetUuid() string
- func (*KeyUpdateRequest) ProtoMessage()
- func (x *KeyUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *KeyUpdateRequest) Reset()
- func (x *KeyUpdateRequest) String() string
- type SpaceCreateRequest
- func (*SpaceCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SpaceCreateRequest) GetName() string
- func (x *SpaceCreateRequest) GetProfile() string
- func (*SpaceCreateRequest) ProtoMessage()
- func (x *SpaceCreateRequest) ProtoReflect() protoreflect.Message
- func (x *SpaceCreateRequest) Reset()
- func (x *SpaceCreateRequest) String() string
- type SpaceEntity
- func (*SpaceEntity) Descriptor() ([]byte, []int)deprecated
- func (x *SpaceEntity) GetCreatedAt() int64
- func (x *SpaceEntity) GetName() string
- func (x *SpaceEntity) GetPrivateKey() string
- func (x *SpaceEntity) GetProfile() string
- func (x *SpaceEntity) GetPublicKey() string
- func (x *SpaceEntity) GetSpaceKey() string
- func (x *SpaceEntity) GetSpaceSecret() string
- func (x *SpaceEntity) GetUuid() string
- func (*SpaceEntity) ProtoMessage()
- func (x *SpaceEntity) ProtoReflect() protoreflect.Message
- func (x *SpaceEntity) Reset()
- func (x *SpaceEntity) String() string
- type SpaceGetRequest
- type SpaceGetResponse
- func (*SpaceGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SpaceGetResponse) GetSpace() *SpaceEntity
- func (x *SpaceGetResponse) GetStatus() *Status
- func (*SpaceGetResponse) ProtoMessage()
- func (x *SpaceGetResponse) ProtoReflect() protoreflect.Message
- func (x *SpaceGetResponse) Reset()
- func (x *SpaceGetResponse) String() string
- type SpaceHandler
- type SpaceListRequest
- func (*SpaceListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SpaceListRequest) GetCount() int64
- func (x *SpaceListRequest) GetOffset() int64
- func (*SpaceListRequest) ProtoMessage()
- func (x *SpaceListRequest) ProtoReflect() protoreflect.Message
- func (x *SpaceListRequest) Reset()
- func (x *SpaceListRequest) String() string
- type SpaceListResponse
- func (*SpaceListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SpaceListResponse) GetSpace() []*SpaceEntity
- func (x *SpaceListResponse) GetStatus() *Status
- func (x *SpaceListResponse) GetTotal() int64
- func (*SpaceListResponse) ProtoMessage()
- func (x *SpaceListResponse) ProtoReflect() protoreflect.Message
- func (x *SpaceListResponse) Reset()
- func (x *SpaceListResponse) String() string
- type SpaceSearchRequest
- func (*SpaceSearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SpaceSearchRequest) GetCount() int64
- func (x *SpaceSearchRequest) GetName() string
- func (x *SpaceSearchRequest) GetOffset() int64
- func (*SpaceSearchRequest) ProtoMessage()
- func (x *SpaceSearchRequest) ProtoReflect() protoreflect.Message
- func (x *SpaceSearchRequest) Reset()
- func (x *SpaceSearchRequest) String() string
- type SpaceService
- type SpaceUpdateRequest
- func (*SpaceUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SpaceUpdateRequest) GetProfile() string
- func (x *SpaceUpdateRequest) GetUuid() string
- func (*SpaceUpdateRequest) ProtoMessage()
- func (x *SpaceUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *SpaceUpdateRequest) Reset()
- func (x *SpaceUpdateRequest) String() string
- type Status
- type UuidResponse
- func (*UuidResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UuidResponse) GetStatus() *Status
- func (x *UuidResponse) GetUuid() string
- func (*UuidResponse) ProtoMessage()
- func (x *UuidResponse) ProtoReflect() protoreflect.Message
- func (x *UuidResponse) Reset()
- func (x *UuidResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_proto_license_certificate_proto protoreflect.FileDescriptor
var File_proto_license_healthy_proto protoreflect.FileDescriptor
var File_proto_license_key_proto protoreflect.FileDescriptor
var File_proto_license_space_proto protoreflect.FileDescriptor
Functions ¶
func NewCertificateEndpoints ¶
func NewHealthyEndpoints ¶
func NewKeyEndpoints ¶
func NewSpaceEndpoints ¶
func RegisterCertificateHandler ¶
func RegisterCertificateHandler(s server.Server, hdlr CertificateHandler, opts ...server.HandlerOption) error
func RegisterHealthyHandler ¶ added in v1.2.0
func RegisterHealthyHandler(s server.Server, hdlr HealthyHandler, opts ...server.HandlerOption) error
func RegisterKeyHandler ¶
func RegisterKeyHandler(s server.Server, hdlr KeyHandler, opts ...server.HandlerOption) error
func RegisterSpaceHandler ¶
func RegisterSpaceHandler(s server.Server, hdlr SpaceHandler, opts ...server.HandlerOption) error
Types ¶
type BlankResponse ¶
type BlankResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 // contains filtered or unexported fields }
空白回复
func (*BlankResponse) Descriptor
deprecated
func (*BlankResponse) Descriptor() ([]byte, []int)
Deprecated: Use BlankResponse.ProtoReflect.Descriptor instead.
func (*BlankResponse) GetStatus ¶
func (x *BlankResponse) GetStatus() *Status
func (*BlankResponse) ProtoMessage ¶
func (*BlankResponse) ProtoMessage()
func (*BlankResponse) ProtoReflect ¶
func (x *BlankResponse) ProtoReflect() protoreflect.Message
func (*BlankResponse) Reset ¶
func (x *BlankResponse) Reset()
func (*BlankResponse) String ¶
func (x *BlankResponse) String() string
type CerGetRequest ¶
type CerGetRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // uuid // contains filtered or unexported fields }
获取的请求
func (*CerGetRequest) Descriptor
deprecated
func (*CerGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use CerGetRequest.ProtoReflect.Descriptor instead.
func (*CerGetRequest) GetUuid ¶
func (x *CerGetRequest) GetUuid() string
func (*CerGetRequest) ProtoMessage ¶
func (*CerGetRequest) ProtoMessage()
func (*CerGetRequest) ProtoReflect ¶
func (x *CerGetRequest) ProtoReflect() protoreflect.Message
func (*CerGetRequest) Reset ¶
func (x *CerGetRequest) Reset()
func (*CerGetRequest) String ¶
func (x *CerGetRequest) String() string
type CerGetResponse ¶
type CerGetResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 Cer *CertificateEntity `protobuf:"bytes,2,opt,name=cer,proto3" json:"cer,omitempty"` // 证书 // contains filtered or unexported fields }
获取的回复
func (*CerGetResponse) Descriptor
deprecated
func (*CerGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use CerGetResponse.ProtoReflect.Descriptor instead.
func (*CerGetResponse) GetCer ¶
func (x *CerGetResponse) GetCer() *CertificateEntity
func (*CerGetResponse) GetStatus ¶
func (x *CerGetResponse) GetStatus() *Status
func (*CerGetResponse) ProtoMessage ¶
func (*CerGetResponse) ProtoMessage()
func (*CerGetResponse) ProtoReflect ¶
func (x *CerGetResponse) ProtoReflect() protoreflect.Message
func (*CerGetResponse) Reset ¶
func (x *CerGetResponse) Reset()
func (*CerGetResponse) String ¶
func (x *CerGetResponse) String() string
type CerListRequest ¶ added in v1.0.8
type CerListRequest struct { Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` // 偏移值 Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 数量 Space string `protobuf:"bytes,3,opt,name=space,proto3" json:"space,omitempty"` // 空间名 // contains filtered or unexported fields }
列举的请求
func (*CerListRequest) Descriptor
deprecated
added in
v1.0.8
func (*CerListRequest) Descriptor() ([]byte, []int)
Deprecated: Use CerListRequest.ProtoReflect.Descriptor instead.
func (*CerListRequest) GetCount ¶ added in v1.0.8
func (x *CerListRequest) GetCount() int64
func (*CerListRequest) GetOffset ¶ added in v1.0.8
func (x *CerListRequest) GetOffset() int64
func (*CerListRequest) GetSpace ¶ added in v1.0.11
func (x *CerListRequest) GetSpace() string
func (*CerListRequest) ProtoMessage ¶ added in v1.0.8
func (*CerListRequest) ProtoMessage()
func (*CerListRequest) ProtoReflect ¶
func (x *CerListRequest) ProtoReflect() protoreflect.Message
func (*CerListRequest) Reset ¶ added in v1.0.8
func (x *CerListRequest) Reset()
func (*CerListRequest) String ¶ added in v1.0.8
func (x *CerListRequest) String() string
type CerListResponse ¶ added in v1.0.8
type CerListResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` //持久化的总数 Cer []*CertificateEntity `protobuf:"bytes,3,rep,name=cer,proto3" json:"cer,omitempty"` // 证书的列表 // contains filtered or unexported fields }
列举的回复
func (*CerListResponse) Descriptor
deprecated
added in
v1.0.8
func (*CerListResponse) Descriptor() ([]byte, []int)
Deprecated: Use CerListResponse.ProtoReflect.Descriptor instead.
func (*CerListResponse) GetCer ¶ added in v1.0.8
func (x *CerListResponse) GetCer() []*CertificateEntity
func (*CerListResponse) GetStatus ¶ added in v1.0.8
func (x *CerListResponse) GetStatus() *Status
func (*CerListResponse) GetTotal ¶ added in v1.0.8
func (x *CerListResponse) GetTotal() int64
func (*CerListResponse) ProtoMessage ¶ added in v1.0.8
func (*CerListResponse) ProtoMessage()
func (*CerListResponse) ProtoReflect ¶
func (x *CerListResponse) ProtoReflect() protoreflect.Message
func (*CerListResponse) Reset ¶ added in v1.0.8
func (x *CerListResponse) Reset()
func (*CerListResponse) String ¶ added in v1.0.8
func (x *CerListResponse) String() string
type CerPullRequest ¶ added in v1.0.12
type CerPullRequest struct { Space string `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"` // 空间名 Consumer string `protobuf:"bytes,2,opt,name=consumer,proto3" json:"consumer,omitempty"` // 消费者 // contains filtered or unexported fields }
拉去的请求
func (*CerPullRequest) Descriptor
deprecated
added in
v1.0.12
func (*CerPullRequest) Descriptor() ([]byte, []int)
Deprecated: Use CerPullRequest.ProtoReflect.Descriptor instead.
func (*CerPullRequest) GetConsumer ¶ added in v1.0.12
func (x *CerPullRequest) GetConsumer() string
func (*CerPullRequest) GetSpace ¶ added in v1.0.12
func (x *CerPullRequest) GetSpace() string
func (*CerPullRequest) ProtoMessage ¶ added in v1.0.12
func (*CerPullRequest) ProtoMessage()
func (*CerPullRequest) ProtoReflect ¶
func (x *CerPullRequest) ProtoReflect() protoreflect.Message
func (*CerPullRequest) Reset ¶ added in v1.0.12
func (x *CerPullRequest) Reset()
func (*CerPullRequest) String ¶ added in v1.0.12
func (x *CerPullRequest) String() string
type CerPullResponse ¶ added in v1.0.12
type CerPullResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 Cer *CertificateEntity `protobuf:"bytes,2,opt,name=cer,proto3" json:"cer,omitempty"` // 证书 // contains filtered or unexported fields }
拉取的回复
func (*CerPullResponse) Descriptor
deprecated
added in
v1.0.12
func (*CerPullResponse) Descriptor() ([]byte, []int)
Deprecated: Use CerPullResponse.ProtoReflect.Descriptor instead.
func (*CerPullResponse) GetCer ¶ added in v1.0.12
func (x *CerPullResponse) GetCer() *CertificateEntity
func (*CerPullResponse) GetStatus ¶ added in v1.0.12
func (x *CerPullResponse) GetStatus() *Status
func (*CerPullResponse) ProtoMessage ¶ added in v1.0.12
func (*CerPullResponse) ProtoMessage()
func (*CerPullResponse) ProtoReflect ¶
func (x *CerPullResponse) ProtoReflect() protoreflect.Message
func (*CerPullResponse) Reset ¶ added in v1.0.12
func (x *CerPullResponse) Reset()
func (*CerPullResponse) String ¶ added in v1.0.12
func (x *CerPullResponse) String() string
type CerSearchRequest ¶
type CerSearchRequest struct { Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` // 偏移值 Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 数量 Space string `protobuf:"bytes,3,opt,name=space,proto3" json:"space,omitempty"` // 空间名 Number string `protobuf:"bytes,4,opt,name=number,proto3" json:"number,omitempty"` // 激活序列号 Consumer string `protobuf:"bytes,5,opt,name=consumer,proto3" json:"consumer,omitempty"` // 消费者 // contains filtered or unexported fields }
搜索的请求
func (*CerSearchRequest) Descriptor
deprecated
func (*CerSearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use CerSearchRequest.ProtoReflect.Descriptor instead.
func (*CerSearchRequest) GetConsumer ¶
func (x *CerSearchRequest) GetConsumer() string
func (*CerSearchRequest) GetCount ¶
func (x *CerSearchRequest) GetCount() int64
func (*CerSearchRequest) GetNumber ¶
func (x *CerSearchRequest) GetNumber() string
func (*CerSearchRequest) GetOffset ¶
func (x *CerSearchRequest) GetOffset() int64
func (*CerSearchRequest) GetSpace ¶
func (x *CerSearchRequest) GetSpace() string
func (*CerSearchRequest) ProtoMessage ¶
func (*CerSearchRequest) ProtoMessage()
func (*CerSearchRequest) ProtoReflect ¶
func (x *CerSearchRequest) ProtoReflect() protoreflect.Message
func (*CerSearchRequest) Reset ¶
func (x *CerSearchRequest) Reset()
func (*CerSearchRequest) String ¶
func (x *CerSearchRequest) String() string
type CertificateEntity ¶ added in v1.0.8
type CertificateEntity struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // UUID Space string `protobuf:"bytes,2,opt,name=space,proto3" json:"space,omitempty"` // 空间名 Number string `protobuf:"bytes,3,opt,name=number,proto3" json:"number,omitempty"` // 激活码 Consumer string `protobuf:"bytes,4,opt,name=consumer,proto3" json:"consumer,omitempty"` // 消费者 Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` // 内容 CreatedAt int64 `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 生成时间 // contains filtered or unexported fields }
证书
func (*CertificateEntity) Descriptor
deprecated
added in
v1.0.8
func (*CertificateEntity) Descriptor() ([]byte, []int)
Deprecated: Use CertificateEntity.ProtoReflect.Descriptor instead.
func (*CertificateEntity) GetConsumer ¶ added in v1.0.8
func (x *CertificateEntity) GetConsumer() string
func (*CertificateEntity) GetContent ¶ added in v1.0.8
func (x *CertificateEntity) GetContent() string
func (*CertificateEntity) GetCreatedAt ¶ added in v1.0.9
func (x *CertificateEntity) GetCreatedAt() int64
func (*CertificateEntity) GetNumber ¶ added in v1.0.8
func (x *CertificateEntity) GetNumber() string
func (*CertificateEntity) GetSpace ¶ added in v1.0.8
func (x *CertificateEntity) GetSpace() string
func (*CertificateEntity) GetUuid ¶
func (x *CertificateEntity) GetUuid() string
func (*CertificateEntity) ProtoMessage ¶ added in v1.0.8
func (*CertificateEntity) ProtoMessage()
func (*CertificateEntity) ProtoReflect ¶
func (x *CertificateEntity) ProtoReflect() protoreflect.Message
func (*CertificateEntity) Reset ¶ added in v1.0.8
func (x *CertificateEntity) Reset()
func (*CertificateEntity) String ¶ added in v1.0.8
func (x *CertificateEntity) String() string
type CertificateHandler ¶
type CertificateHandler interface { // 获取 Get(context.Context, *CerGetRequest, *CerGetResponse) error // 列举 List(context.Context, *CerListRequest, *CerListResponse) error // 搜索 Search(context.Context, *CerSearchRequest, *CerListResponse) error // 拉取 Pull(context.Context, *CerPullRequest, *CerPullResponse) error }
type CertificateService ¶
type CertificateService interface { // 获取 Get(ctx context.Context, in *CerGetRequest, opts ...client.CallOption) (*CerGetResponse, error) // 列举 List(ctx context.Context, in *CerListRequest, opts ...client.CallOption) (*CerListResponse, error) // 搜索 Search(ctx context.Context, in *CerSearchRequest, opts ...client.CallOption) (*CerListResponse, error) // 拉取 Pull(ctx context.Context, in *CerPullRequest, opts ...client.CallOption) (*CerPullResponse, error) }
func NewCertificateService ¶
func NewCertificateService(name string, c client.Client) CertificateService
type EchoRequest ¶ added in v1.2.0
type EchoRequest struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
回显的请求
func (*EchoRequest) Descriptor
deprecated
added in
v1.2.0
func (*EchoRequest) Descriptor() ([]byte, []int)
Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
func (*EchoRequest) GetMsg ¶ added in v1.2.0
func (x *EchoRequest) GetMsg() string
func (*EchoRequest) ProtoMessage ¶ added in v1.2.0
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) ProtoReflect ¶
func (x *EchoRequest) ProtoReflect() protoreflect.Message
func (*EchoRequest) Reset ¶ added in v1.2.0
func (x *EchoRequest) Reset()
func (*EchoRequest) String ¶ added in v1.2.0
func (x *EchoRequest) String() string
type EchoResponse ¶ added in v1.2.0
type EchoResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
回显的回复
func (*EchoResponse) Descriptor
deprecated
added in
v1.2.0
func (*EchoResponse) Descriptor() ([]byte, []int)
Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.
func (*EchoResponse) GetMsg ¶ added in v1.2.0
func (x *EchoResponse) GetMsg() string
func (*EchoResponse) ProtoMessage ¶ added in v1.2.0
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) ProtoReflect ¶
func (x *EchoResponse) ProtoReflect() protoreflect.Message
func (*EchoResponse) Reset ¶ added in v1.2.0
func (x *EchoResponse) Reset()
func (*EchoResponse) String ¶ added in v1.2.0
func (x *EchoResponse) String() string
type HealthyHandler ¶ added in v1.2.0
type HealthyHandler interface { // 回显 Echo(context.Context, *EchoRequest, *EchoResponse) error }
type HealthyService ¶ added in v1.2.0
type HealthyService interface { // 回显 Echo(ctx context.Context, in *EchoRequest, opts ...client.CallOption) (*EchoResponse, error) }
func NewHealthyService ¶ added in v1.2.0
func NewHealthyService(name string, c client.Client) HealthyService
type KeyActivateRequest ¶
type KeyActivateRequest struct { Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` // 序列号 Consumer string `protobuf:"bytes,2,opt,name=consumer,proto3" json:"consumer,omitempty"` // 消费者 Space string `protobuf:"bytes,3,opt,name=space,proto3" json:"space,omitempty"` //空间 // contains filtered or unexported fields }
激活的请求
func (*KeyActivateRequest) Descriptor
deprecated
func (*KeyActivateRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyActivateRequest.ProtoReflect.Descriptor instead.
func (*KeyActivateRequest) GetConsumer ¶
func (x *KeyActivateRequest) GetConsumer() string
func (*KeyActivateRequest) GetNumber ¶
func (x *KeyActivateRequest) GetNumber() string
func (*KeyActivateRequest) GetSpace ¶ added in v1.0.2
func (x *KeyActivateRequest) GetSpace() string
func (*KeyActivateRequest) ProtoMessage ¶
func (*KeyActivateRequest) ProtoMessage()
func (*KeyActivateRequest) ProtoReflect ¶
func (x *KeyActivateRequest) ProtoReflect() protoreflect.Message
func (*KeyActivateRequest) Reset ¶
func (x *KeyActivateRequest) Reset()
func (*KeyActivateRequest) String ¶
func (x *KeyActivateRequest) String() string
type KeyActivateResponse ¶
type KeyActivateResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // key的UUID CerUID string `protobuf:"bytes,3,opt,name=cerUID,proto3" json:"cerUID,omitempty"` // 授权文件ID CerContent string `protobuf:"bytes,4,opt,name=cerContent,proto3" json:"cerContent,omitempty"` // 授权文件内容 // contains filtered or unexported fields }
激活的回复
func (*KeyActivateResponse) Descriptor
deprecated
func (*KeyActivateResponse) Descriptor() ([]byte, []int)
Deprecated: Use KeyActivateResponse.ProtoReflect.Descriptor instead.
func (*KeyActivateResponse) GetCerContent ¶
func (x *KeyActivateResponse) GetCerContent() string
func (*KeyActivateResponse) GetCerUID ¶
func (x *KeyActivateResponse) GetCerUID() string
func (*KeyActivateResponse) GetStatus ¶
func (x *KeyActivateResponse) GetStatus() *Status
func (*KeyActivateResponse) GetUuid ¶
func (x *KeyActivateResponse) GetUuid() string
func (*KeyActivateResponse) ProtoMessage ¶
func (*KeyActivateResponse) ProtoMessage()
func (*KeyActivateResponse) ProtoReflect ¶
func (x *KeyActivateResponse) ProtoReflect() protoreflect.Message
func (*KeyActivateResponse) Reset ¶
func (x *KeyActivateResponse) Reset()
func (*KeyActivateResponse) String ¶
func (x *KeyActivateResponse) String() string
type KeyEntity ¶ added in v1.0.6
type KeyEntity struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` //uuid Number string `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"` // 序列号 Space string `protobuf:"bytes,3,opt,name=space,proto3" json:"space,omitempty"` // 空间 Capacity int32 `protobuf:"varint,4,opt,name=capacity,proto3" json:"capacity,omitempty"` // 可激活的设备数量 Expiry int32 `protobuf:"varint,5,opt,name=expiry,proto3" json:"expiry,omitempty"` // 有效期,以天为单位,默认为0(永久) Storage string `protobuf:"bytes,6,opt,name=storage,proto3" json:"storage,omitempty"` // 自定义数据 Profile string `protobuf:"bytes,7,opt,name=profile,proto3" json:"profile,omitempty"` // 激活码简介 Ban int32 `protobuf:"varint,10,opt,name=ban,proto3" json:"ban,omitempty"` // 禁用状态 Reason string `protobuf:"bytes,11,opt,name=reason,proto3" json:"reason,omitempty"` // 禁用原因 Consumer []string `protobuf:"bytes,20,rep,name=consumer,proto3" json:"consumer,omitempty"` // 消费者 CreatedAt int64 `protobuf:"varint,31,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 创建时间 UpdatedAt int64 `protobuf:"varint,32,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 更改时间 ActivatedAt int64 `protobuf:"varint,33,opt,name=activatedAt,proto3" json:"activatedAt,omitempty"` // 激活时间 // contains filtered or unexported fields }
激活码
func (*KeyEntity) Descriptor
deprecated
added in
v1.0.6
func (*KeyEntity) GetActivatedAt ¶ added in v1.0.6
func (*KeyEntity) GetCapacity ¶ added in v1.0.6
func (*KeyEntity) GetConsumer ¶ added in v1.0.6
func (*KeyEntity) GetCreatedAt ¶ added in v1.0.6
func (*KeyEntity) GetProfile ¶ added in v1.0.6
func (*KeyEntity) GetStorage ¶ added in v1.0.6
func (*KeyEntity) GetUpdatedAt ¶ added in v1.0.6
func (*KeyEntity) ProtoMessage ¶ added in v1.0.6
func (*KeyEntity) ProtoMessage()
func (*KeyEntity) ProtoReflect ¶
func (x *KeyEntity) ProtoReflect() protoreflect.Message
type KeyGenerateRequest ¶
type KeyGenerateRequest struct { Space string `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"` // 空间的uuid Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 生成数量 Capacity int32 `protobuf:"varint,3,opt,name=capacity,proto3" json:"capacity,omitempty"` // 可激活的设备数量 Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` // 有效期,以天为单位,默认为0(永久) Storage string `protobuf:"bytes,5,opt,name=storage,proto3" json:"storage,omitempty"` // 自定义数据 Profile string `protobuf:"bytes,6,opt,name=profile,proto3" json:"profile,omitempty"` // 激活码简介 // contains filtered or unexported fields }
生成的请求
func (*KeyGenerateRequest) Descriptor
deprecated
func (*KeyGenerateRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyGenerateRequest.ProtoReflect.Descriptor instead.
func (*KeyGenerateRequest) GetCapacity ¶
func (x *KeyGenerateRequest) GetCapacity() int32
func (*KeyGenerateRequest) GetCount ¶
func (x *KeyGenerateRequest) GetCount() int32
func (*KeyGenerateRequest) GetExpiry ¶
func (x *KeyGenerateRequest) GetExpiry() int32
func (*KeyGenerateRequest) GetProfile ¶
func (x *KeyGenerateRequest) GetProfile() string
func (*KeyGenerateRequest) GetSpace ¶ added in v1.0.7
func (x *KeyGenerateRequest) GetSpace() string
func (*KeyGenerateRequest) GetStorage ¶
func (x *KeyGenerateRequest) GetStorage() string
func (*KeyGenerateRequest) ProtoMessage ¶
func (*KeyGenerateRequest) ProtoMessage()
func (*KeyGenerateRequest) ProtoReflect ¶
func (x *KeyGenerateRequest) ProtoReflect() protoreflect.Message
func (*KeyGenerateRequest) Reset ¶
func (x *KeyGenerateRequest) Reset()
func (*KeyGenerateRequest) String ¶
func (x *KeyGenerateRequest) String() string
type KeyGenerateResponse ¶
type KeyGenerateResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 Number []string `protobuf:"bytes,2,rep,name=number,proto3" json:"number,omitempty"` // 序列号 // contains filtered or unexported fields }
生成的回复
func (*KeyGenerateResponse) Descriptor
deprecated
func (*KeyGenerateResponse) Descriptor() ([]byte, []int)
Deprecated: Use KeyGenerateResponse.ProtoReflect.Descriptor instead.
func (*KeyGenerateResponse) GetNumber ¶
func (x *KeyGenerateResponse) GetNumber() []string
func (*KeyGenerateResponse) GetStatus ¶
func (x *KeyGenerateResponse) GetStatus() *Status
func (*KeyGenerateResponse) ProtoMessage ¶
func (*KeyGenerateResponse) ProtoMessage()
func (*KeyGenerateResponse) ProtoReflect ¶
func (x *KeyGenerateResponse) ProtoReflect() protoreflect.Message
func (*KeyGenerateResponse) Reset ¶
func (x *KeyGenerateResponse) Reset()
func (*KeyGenerateResponse) String ¶
func (x *KeyGenerateResponse) String() string
type KeyGetRequest ¶
type KeyGetRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // uuid // contains filtered or unexported fields }
获取的请求
func (*KeyGetRequest) Descriptor
deprecated
func (*KeyGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyGetRequest.ProtoReflect.Descriptor instead.
func (*KeyGetRequest) GetUuid ¶
func (x *KeyGetRequest) GetUuid() string
func (*KeyGetRequest) ProtoMessage ¶
func (*KeyGetRequest) ProtoMessage()
func (*KeyGetRequest) ProtoReflect ¶
func (x *KeyGetRequest) ProtoReflect() protoreflect.Message
func (*KeyGetRequest) Reset ¶
func (x *KeyGetRequest) Reset()
func (*KeyGetRequest) String ¶
func (x *KeyGetRequest) String() string
type KeyGetResponse ¶
type KeyGetResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 Key *KeyEntity `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // 实体 // contains filtered or unexported fields }
获取的回复
func (*KeyGetResponse) Descriptor
deprecated
func (*KeyGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use KeyGetResponse.ProtoReflect.Descriptor instead.
func (*KeyGetResponse) GetKey ¶
func (x *KeyGetResponse) GetKey() *KeyEntity
func (*KeyGetResponse) GetStatus ¶
func (x *KeyGetResponse) GetStatus() *Status
func (*KeyGetResponse) ProtoMessage ¶
func (*KeyGetResponse) ProtoMessage()
func (*KeyGetResponse) ProtoReflect ¶
func (x *KeyGetResponse) ProtoReflect() protoreflect.Message
func (*KeyGetResponse) Reset ¶
func (x *KeyGetResponse) Reset()
func (*KeyGetResponse) String ¶
func (x *KeyGetResponse) String() string
type KeyHandler ¶
type KeyHandler interface { // 生成 Generate(context.Context, *KeyGenerateRequest, *KeyGenerateResponse) error // 激活 Activate(context.Context, *KeyActivateRequest, *KeyActivateResponse) error // 更新 Update(context.Context, *KeyUpdateRequest, *UuidResponse) error // 获取 Get(context.Context, *KeyGetRequest, *KeyGetResponse) error // 列举 List(context.Context, *KeyListRequest, *KeyListResponse) error // 查询 Search(context.Context, *KeySearchRequest, *KeyListResponse) error }
type KeyListRequest ¶ added in v1.0.5
type KeyListRequest struct { Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` // 偏移值 Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 数量 Space string `protobuf:"bytes,3,opt,name=space,proto3" json:"space,omitempty"` // 空间名 // contains filtered or unexported fields }
列举的请求
func (*KeyListRequest) Descriptor
deprecated
added in
v1.0.5
func (*KeyListRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyListRequest.ProtoReflect.Descriptor instead.
func (*KeyListRequest) GetCount ¶ added in v1.0.6
func (x *KeyListRequest) GetCount() int64
func (*KeyListRequest) GetOffset ¶ added in v1.0.6
func (x *KeyListRequest) GetOffset() int64
func (*KeyListRequest) GetSpace ¶ added in v1.0.7
func (x *KeyListRequest) GetSpace() string
func (*KeyListRequest) ProtoMessage ¶ added in v1.0.5
func (*KeyListRequest) ProtoMessage()
func (*KeyListRequest) ProtoReflect ¶
func (x *KeyListRequest) ProtoReflect() protoreflect.Message
func (*KeyListRequest) Reset ¶ added in v1.0.5
func (x *KeyListRequest) Reset()
func (*KeyListRequest) String ¶ added in v1.0.5
func (x *KeyListRequest) String() string
type KeyListResponse ¶ added in v1.0.5
type KeyListResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` //持久化的总数 Key []*KeyEntity `protobuf:"bytes,3,rep,name=key,proto3" json:"key,omitempty"` // 激活码列表 // contains filtered or unexported fields }
列举的回复
func (*KeyListResponse) Descriptor
deprecated
added in
v1.0.5
func (*KeyListResponse) Descriptor() ([]byte, []int)
Deprecated: Use KeyListResponse.ProtoReflect.Descriptor instead.
func (*KeyListResponse) GetKey ¶ added in v1.0.6
func (x *KeyListResponse) GetKey() []*KeyEntity
func (*KeyListResponse) GetStatus ¶ added in v1.0.5
func (x *KeyListResponse) GetStatus() *Status
func (*KeyListResponse) GetTotal ¶ added in v1.0.7
func (x *KeyListResponse) GetTotal() int64
func (*KeyListResponse) ProtoMessage ¶ added in v1.0.5
func (*KeyListResponse) ProtoMessage()
func (*KeyListResponse) ProtoReflect ¶
func (x *KeyListResponse) ProtoReflect() protoreflect.Message
func (*KeyListResponse) Reset ¶ added in v1.0.5
func (x *KeyListResponse) Reset()
func (*KeyListResponse) String ¶ added in v1.0.5
func (x *KeyListResponse) String() string
type KeySearchRequest ¶
type KeySearchRequest struct { Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` // 偏移值 Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 数量 Space string `protobuf:"bytes,3,opt,name=space,proto3" json:"space,omitempty"` // 空间名 Number string `protobuf:"bytes,4,opt,name=number,proto3" json:"number,omitempty"` // 序列号 Capacity int32 `protobuf:"varint,10,opt,name=capacity,proto3" json:"capacity,omitempty"` // 激活力 Expiry int32 `protobuf:"varint,11,opt,name=expiry,proto3" json:"expiry,omitempty"` // 有效期 Storage string `protobuf:"bytes,12,opt,name=storage,proto3" json:"storage,omitempty"` // 有效期 Profile string `protobuf:"bytes,13,opt,name=profile,proto3" json:"profile,omitempty"` // 有效期 Ban int32 `protobuf:"varint,14,opt,name=ban,proto3" json:"ban,omitempty"` // 禁用状态 // contains filtered or unexported fields }
查询的请求
func (*KeySearchRequest) Descriptor
deprecated
func (*KeySearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeySearchRequest.ProtoReflect.Descriptor instead.
func (*KeySearchRequest) GetBan ¶
func (x *KeySearchRequest) GetBan() int32
func (*KeySearchRequest) GetCapacity ¶
func (x *KeySearchRequest) GetCapacity() int32
func (*KeySearchRequest) GetCount ¶
func (x *KeySearchRequest) GetCount() int64
func (*KeySearchRequest) GetExpiry ¶
func (x *KeySearchRequest) GetExpiry() int32
func (*KeySearchRequest) GetNumber ¶
func (x *KeySearchRequest) GetNumber() string
func (*KeySearchRequest) GetOffset ¶
func (x *KeySearchRequest) GetOffset() int64
func (*KeySearchRequest) GetProfile ¶
func (x *KeySearchRequest) GetProfile() string
func (*KeySearchRequest) GetSpace ¶
func (x *KeySearchRequest) GetSpace() string
func (*KeySearchRequest) GetStorage ¶
func (x *KeySearchRequest) GetStorage() string
func (*KeySearchRequest) ProtoMessage ¶
func (*KeySearchRequest) ProtoMessage()
func (*KeySearchRequest) ProtoReflect ¶
func (x *KeySearchRequest) ProtoReflect() protoreflect.Message
func (*KeySearchRequest) Reset ¶
func (x *KeySearchRequest) Reset()
func (*KeySearchRequest) String ¶
func (x *KeySearchRequest) String() string
type KeyService ¶
type KeyService interface { // 生成 Generate(ctx context.Context, in *KeyGenerateRequest, opts ...client.CallOption) (*KeyGenerateResponse, error) // 激活 Activate(ctx context.Context, in *KeyActivateRequest, opts ...client.CallOption) (*KeyActivateResponse, error) // 更新 Update(ctx context.Context, in *KeyUpdateRequest, opts ...client.CallOption) (*UuidResponse, error) // 获取 Get(ctx context.Context, in *KeyGetRequest, opts ...client.CallOption) (*KeyGetResponse, error) // 列举 List(ctx context.Context, in *KeyListRequest, opts ...client.CallOption) (*KeyListResponse, error) // 查询 Search(ctx context.Context, in *KeySearchRequest, opts ...client.CallOption) (*KeyListResponse, error) }
func NewKeyService ¶
func NewKeyService(name string, c client.Client) KeyService
type KeyUpdateRequest ¶
type KeyUpdateRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // 激活码UUID Profile string `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"` // 描述 Ban int32 `protobuf:"varint,3,opt,name=ban,proto3" json:"ban,omitempty"` // 禁用码, 0表示重新启用 Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` // 禁用原因 // contains filtered or unexported fields }
更新的请求
func (*KeyUpdateRequest) Descriptor
deprecated
func (*KeyUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyUpdateRequest.ProtoReflect.Descriptor instead.
func (*KeyUpdateRequest) GetBan ¶
func (x *KeyUpdateRequest) GetBan() int32
func (*KeyUpdateRequest) GetProfile ¶
func (x *KeyUpdateRequest) GetProfile() string
func (*KeyUpdateRequest) GetReason ¶
func (x *KeyUpdateRequest) GetReason() string
func (*KeyUpdateRequest) GetUuid ¶
func (x *KeyUpdateRequest) GetUuid() string
func (*KeyUpdateRequest) ProtoMessage ¶
func (*KeyUpdateRequest) ProtoMessage()
func (*KeyUpdateRequest) ProtoReflect ¶
func (x *KeyUpdateRequest) ProtoReflect() protoreflect.Message
func (*KeyUpdateRequest) Reset ¶
func (x *KeyUpdateRequest) Reset()
func (*KeyUpdateRequest) String ¶
func (x *KeyUpdateRequest) String() string
type SpaceCreateRequest ¶
type SpaceCreateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 空间名 Profile string `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"` // 描述 // contains filtered or unexported fields }
创建的请求
func (*SpaceCreateRequest) Descriptor
deprecated
func (*SpaceCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use SpaceCreateRequest.ProtoReflect.Descriptor instead.
func (*SpaceCreateRequest) GetName ¶
func (x *SpaceCreateRequest) GetName() string
func (*SpaceCreateRequest) GetProfile ¶
func (x *SpaceCreateRequest) GetProfile() string
func (*SpaceCreateRequest) ProtoMessage ¶
func (*SpaceCreateRequest) ProtoMessage()
func (*SpaceCreateRequest) ProtoReflect ¶
func (x *SpaceCreateRequest) ProtoReflect() protoreflect.Message
func (*SpaceCreateRequest) Reset ¶
func (x *SpaceCreateRequest) Reset()
func (*SpaceCreateRequest) String ¶
func (x *SpaceCreateRequest) String() string
type SpaceEntity ¶ added in v1.0.6
type SpaceEntity struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // uuid Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 空间名 SpaceKey string `protobuf:"bytes,3,opt,name=spaceKey,proto3" json:"spaceKey,omitempty"` // 空间识别码 SpaceSecret string `protobuf:"bytes,4,opt,name=spaceSecret,proto3" json:"spaceSecret,omitempty"` // 空间密钥 PublicKey string `protobuf:"bytes,5,opt,name=publicKey,proto3" json:"publicKey,omitempty"` // 公钥 PrivateKey string `protobuf:"bytes,6,opt,name=privateKey,proto3" json:"privateKey,omitempty"` // 私钥 Profile string `protobuf:"bytes,7,opt,name=profile,proto3" json:"profile,omitempty"` // 简介 CreatedAt int64 `protobuf:"varint,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 创建时间 // contains filtered or unexported fields }
空间
func (*SpaceEntity) Descriptor
deprecated
added in
v1.0.6
func (*SpaceEntity) Descriptor() ([]byte, []int)
Deprecated: Use SpaceEntity.ProtoReflect.Descriptor instead.
func (*SpaceEntity) GetCreatedAt ¶ added in v1.0.6
func (x *SpaceEntity) GetCreatedAt() int64
func (*SpaceEntity) GetName ¶ added in v1.0.6
func (x *SpaceEntity) GetName() string
func (*SpaceEntity) GetPrivateKey ¶ added in v1.0.6
func (x *SpaceEntity) GetPrivateKey() string
func (*SpaceEntity) GetProfile ¶ added in v1.0.6
func (x *SpaceEntity) GetProfile() string
func (*SpaceEntity) GetPublicKey ¶ added in v1.0.6
func (x *SpaceEntity) GetPublicKey() string
func (*SpaceEntity) GetSpaceKey ¶ added in v1.0.6
func (x *SpaceEntity) GetSpaceKey() string
func (*SpaceEntity) GetSpaceSecret ¶ added in v1.0.6
func (x *SpaceEntity) GetSpaceSecret() string
func (*SpaceEntity) GetUuid ¶
func (x *SpaceEntity) GetUuid() string
func (*SpaceEntity) ProtoMessage ¶ added in v1.0.6
func (*SpaceEntity) ProtoMessage()
func (*SpaceEntity) ProtoReflect ¶
func (x *SpaceEntity) ProtoReflect() protoreflect.Message
func (*SpaceEntity) Reset ¶ added in v1.0.6
func (x *SpaceEntity) Reset()
func (*SpaceEntity) String ¶ added in v1.0.6
func (x *SpaceEntity) String() string
type SpaceGetRequest ¶
type SpaceGetRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` //UUID // contains filtered or unexported fields }
获取的请求
func (*SpaceGetRequest) Descriptor
deprecated
func (*SpaceGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SpaceGetRequest.ProtoReflect.Descriptor instead.
func (*SpaceGetRequest) GetUuid ¶
func (x *SpaceGetRequest) GetUuid() string
func (*SpaceGetRequest) ProtoMessage ¶
func (*SpaceGetRequest) ProtoMessage()
func (*SpaceGetRequest) ProtoReflect ¶
func (x *SpaceGetRequest) ProtoReflect() protoreflect.Message
func (*SpaceGetRequest) Reset ¶
func (x *SpaceGetRequest) Reset()
func (*SpaceGetRequest) String ¶
func (x *SpaceGetRequest) String() string
type SpaceGetResponse ¶
type SpaceGetResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 Space *SpaceEntity `protobuf:"bytes,2,opt,name=space,proto3" json:"space,omitempty"` // 实体 // contains filtered or unexported fields }
获取的回复
func (*SpaceGetResponse) Descriptor
deprecated
func (*SpaceGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use SpaceGetResponse.ProtoReflect.Descriptor instead.
func (*SpaceGetResponse) GetSpace ¶
func (x *SpaceGetResponse) GetSpace() *SpaceEntity
func (*SpaceGetResponse) GetStatus ¶
func (x *SpaceGetResponse) GetStatus() *Status
func (*SpaceGetResponse) ProtoMessage ¶
func (*SpaceGetResponse) ProtoMessage()
func (*SpaceGetResponse) ProtoReflect ¶
func (x *SpaceGetResponse) ProtoReflect() protoreflect.Message
func (*SpaceGetResponse) Reset ¶
func (x *SpaceGetResponse) Reset()
func (*SpaceGetResponse) String ¶
func (x *SpaceGetResponse) String() string
type SpaceHandler ¶
type SpaceHandler interface { // 创建 Create(context.Context, *SpaceCreateRequest, *UuidResponse) error // 更新 Update(context.Context, *SpaceUpdateRequest, *UuidResponse) error // 获取 Get(context.Context, *SpaceGetRequest, *SpaceGetResponse) error // 列举 List(context.Context, *SpaceListRequest, *SpaceListResponse) error // 搜索 Search(context.Context, *SpaceSearchRequest, *SpaceListResponse) error }
type SpaceListRequest ¶
type SpaceListRequest struct { Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` // 偏移值 Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 数量 // contains filtered or unexported fields }
列举的请求
func (*SpaceListRequest) Descriptor
deprecated
func (*SpaceListRequest) Descriptor() ([]byte, []int)
Deprecated: Use SpaceListRequest.ProtoReflect.Descriptor instead.
func (*SpaceListRequest) GetCount ¶ added in v1.0.6
func (x *SpaceListRequest) GetCount() int64
func (*SpaceListRequest) GetOffset ¶ added in v1.0.6
func (x *SpaceListRequest) GetOffset() int64
func (*SpaceListRequest) ProtoMessage ¶
func (*SpaceListRequest) ProtoMessage()
func (*SpaceListRequest) ProtoReflect ¶
func (x *SpaceListRequest) ProtoReflect() protoreflect.Message
func (*SpaceListRequest) Reset ¶
func (x *SpaceListRequest) Reset()
func (*SpaceListRequest) String ¶
func (x *SpaceListRequest) String() string
type SpaceListResponse ¶
type SpaceListResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // 持久化的总数 Space []*SpaceEntity `protobuf:"bytes,3,rep,name=space,proto3" json:"space,omitempty"` // 空间列表 // contains filtered or unexported fields }
列举的回复
func (*SpaceListResponse) Descriptor
deprecated
func (*SpaceListResponse) Descriptor() ([]byte, []int)
Deprecated: Use SpaceListResponse.ProtoReflect.Descriptor instead.
func (*SpaceListResponse) GetSpace ¶ added in v1.0.6
func (x *SpaceListResponse) GetSpace() []*SpaceEntity
func (*SpaceListResponse) GetStatus ¶
func (x *SpaceListResponse) GetStatus() *Status
func (*SpaceListResponse) GetTotal ¶ added in v1.0.7
func (x *SpaceListResponse) GetTotal() int64
func (*SpaceListResponse) ProtoMessage ¶
func (*SpaceListResponse) ProtoMessage()
func (*SpaceListResponse) ProtoReflect ¶
func (x *SpaceListResponse) ProtoReflect() protoreflect.Message
func (*SpaceListResponse) Reset ¶
func (x *SpaceListResponse) Reset()
func (*SpaceListResponse) String ¶
func (x *SpaceListResponse) String() string
type SpaceSearchRequest ¶
type SpaceSearchRequest struct { Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` // 偏移值 Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 数量 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // 空间名 // contains filtered or unexported fields }
搜索的请求
func (*SpaceSearchRequest) Descriptor
deprecated
func (*SpaceSearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SpaceSearchRequest.ProtoReflect.Descriptor instead.
func (*SpaceSearchRequest) GetCount ¶
func (x *SpaceSearchRequest) GetCount() int64
func (*SpaceSearchRequest) GetName ¶
func (x *SpaceSearchRequest) GetName() string
func (*SpaceSearchRequest) GetOffset ¶
func (x *SpaceSearchRequest) GetOffset() int64
func (*SpaceSearchRequest) ProtoMessage ¶
func (*SpaceSearchRequest) ProtoMessage()
func (*SpaceSearchRequest) ProtoReflect ¶
func (x *SpaceSearchRequest) ProtoReflect() protoreflect.Message
func (*SpaceSearchRequest) Reset ¶
func (x *SpaceSearchRequest) Reset()
func (*SpaceSearchRequest) String ¶
func (x *SpaceSearchRequest) String() string
type SpaceService ¶
type SpaceService interface { // 创建 Create(ctx context.Context, in *SpaceCreateRequest, opts ...client.CallOption) (*UuidResponse, error) // 更新 Update(ctx context.Context, in *SpaceUpdateRequest, opts ...client.CallOption) (*UuidResponse, error) // 获取 Get(ctx context.Context, in *SpaceGetRequest, opts ...client.CallOption) (*SpaceGetResponse, error) // 列举 List(ctx context.Context, in *SpaceListRequest, opts ...client.CallOption) (*SpaceListResponse, error) // 搜索 Search(ctx context.Context, in *SpaceSearchRequest, opts ...client.CallOption) (*SpaceListResponse, error) }
func NewSpaceService ¶
func NewSpaceService(name string, c client.Client) SpaceService
type SpaceUpdateRequest ¶
type SpaceUpdateRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // 空间UUID Profile string `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"` // 描述 // contains filtered or unexported fields }
更新的请求
func (*SpaceUpdateRequest) Descriptor
deprecated
func (*SpaceUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use SpaceUpdateRequest.ProtoReflect.Descriptor instead.
func (*SpaceUpdateRequest) GetProfile ¶
func (x *SpaceUpdateRequest) GetProfile() string
func (*SpaceUpdateRequest) GetUuid ¶
func (x *SpaceUpdateRequest) GetUuid() string
func (*SpaceUpdateRequest) ProtoMessage ¶
func (*SpaceUpdateRequest) ProtoMessage()
func (*SpaceUpdateRequest) ProtoReflect ¶
func (x *SpaceUpdateRequest) ProtoReflect() protoreflect.Message
func (*SpaceUpdateRequest) Reset ¶
func (x *SpaceUpdateRequest) Reset()
func (*SpaceUpdateRequest) String ¶
func (x *SpaceUpdateRequest) String() string
type Status ¶
type Status struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 状态信息 // contains filtered or unexported fields }
状态
func (*Status) Descriptor
deprecated
func (*Status) GetMessage ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type UuidResponse ¶
type UuidResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // uuid // contains filtered or unexported fields }
Uuid回复
func (*UuidResponse) Descriptor
deprecated
func (*UuidResponse) Descriptor() ([]byte, []int)
Deprecated: Use UuidResponse.ProtoReflect.Descriptor instead.
func (*UuidResponse) GetStatus ¶
func (x *UuidResponse) GetStatus() *Status
func (*UuidResponse) GetUuid ¶
func (x *UuidResponse) GetUuid() string
func (*UuidResponse) ProtoMessage ¶
func (*UuidResponse) ProtoMessage()
func (*UuidResponse) ProtoReflect ¶
func (x *UuidResponse) ProtoReflect() protoreflect.Message
func (*UuidResponse) Reset ¶
func (x *UuidResponse) Reset()
func (*UuidResponse) String ¶
func (x *UuidResponse) String() string