Documentation ¶
Index ¶
- Variables
- func NewV1Endpoints() []*api.Endpoint
- func RegisterV1Handler(s server.Server, hdlr V1Handler, opts ...server.HandlerOption) error
- type APIKey
- func (*APIKey) Descriptor() ([]byte, []int)deprecated
- func (x *APIKey) GetCreatedTime() int64
- func (x *APIKey) GetDescription() string
- func (x *APIKey) GetId() string
- func (x *APIKey) GetLastSeen() int64
- func (x *APIKey) GetScopes() []string
- func (*APIKey) ProtoMessage()
- func (x *APIKey) ProtoReflect() protoreflect.Message
- func (x *APIKey) Reset()
- func (x *APIKey) String() string
- type BlockKeyRequest
- func (*BlockKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BlockKeyRequest) GetKeyId() string
- func (x *BlockKeyRequest) GetMessage() string
- func (x *BlockKeyRequest) GetNamespace() string
- func (x *BlockKeyRequest) GetUserId() string
- func (*BlockKeyRequest) ProtoMessage()
- func (x *BlockKeyRequest) ProtoReflect() protoreflect.Message
- func (x *BlockKeyRequest) Reset()
- func (x *BlockKeyRequest) String() string
- type BlockKeyResponse
- type DeleteCustomerRequest
- func (*DeleteCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCustomerRequest) GetId() string
- func (*DeleteCustomerRequest) ProtoMessage()
- func (x *DeleteCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCustomerRequest) Reset()
- func (x *DeleteCustomerRequest) String() string
- type DeleteCustomerResponse
- type DisableAPIRequest
- type DisableAPIResponse
- type EnableAPIRequest
- type EnableAPIResponse
- type GenerateKeyRequest
- func (*GenerateKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateKeyRequest) GetDescription() string
- func (x *GenerateKeyRequest) GetScopes() []string
- func (*GenerateKeyRequest) ProtoMessage()
- func (x *GenerateKeyRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateKeyRequest) Reset()
- func (x *GenerateKeyRequest) String() string
- type GenerateKeyResponse
- func (*GenerateKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateKeyResponse) GetApiKey() string
- func (x *GenerateKeyResponse) GetApiKeyId() string
- func (*GenerateKeyResponse) ProtoMessage()
- func (x *GenerateKeyResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateKeyResponse) Reset()
- func (x *GenerateKeyResponse) String() string
- type ListAPIsRequest
- type ListAPIsResponse
- type ListRequest
- type ListResponse
- type RevokeRequest
- type RevokeResponse
- type UnblockKeyRequest
- func (*UnblockKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnblockKeyRequest) GetKeyId() string
- func (x *UnblockKeyRequest) GetNamespace() string
- func (x *UnblockKeyRequest) GetUserId() string
- func (*UnblockKeyRequest) ProtoMessage()
- func (x *UnblockKeyRequest) ProtoReflect() protoreflect.Message
- func (x *UnblockKeyRequest) Reset()
- func (x *UnblockKeyRequest) String() string
- type UnblockKeyResponse
- type V1Handler
- type V1Service
Constants ¶
This section is empty.
Variables ¶
var File_proto_v1_proto protoreflect.FileDescriptor
Functions ¶
func NewV1Endpoints ¶
func RegisterV1Handler ¶
Types ¶
type APIKey ¶
type APIKey struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` CreatedTime int64 `protobuf:"varint,3,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` Scopes []string `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"` LastSeen int64 `protobuf:"varint,5,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"` // contains filtered or unexported fields }
func (*APIKey) Descriptor
deprecated
func (*APIKey) GetCreatedTime ¶
func (*APIKey) GetDescription ¶
func (*APIKey) GetLastSeen ¶
func (*APIKey) ProtoMessage ¶
func (*APIKey) ProtoMessage()
func (*APIKey) ProtoReflect ¶
func (x *APIKey) ProtoReflect() protoreflect.Message
type BlockKeyRequest ¶
type BlockKeyRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` KeyId string `protobuf:"bytes,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*BlockKeyRequest) Descriptor
deprecated
func (*BlockKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use BlockKeyRequest.ProtoReflect.Descriptor instead.
func (*BlockKeyRequest) GetKeyId ¶
func (x *BlockKeyRequest) GetKeyId() string
func (*BlockKeyRequest) GetMessage ¶
func (x *BlockKeyRequest) GetMessage() string
func (*BlockKeyRequest) GetNamespace ¶
func (x *BlockKeyRequest) GetNamespace() string
func (*BlockKeyRequest) GetUserId ¶
func (x *BlockKeyRequest) GetUserId() string
func (*BlockKeyRequest) ProtoMessage ¶
func (*BlockKeyRequest) ProtoMessage()
func (*BlockKeyRequest) ProtoReflect ¶
func (x *BlockKeyRequest) ProtoReflect() protoreflect.Message
func (*BlockKeyRequest) Reset ¶
func (x *BlockKeyRequest) Reset()
func (*BlockKeyRequest) String ¶
func (x *BlockKeyRequest) String() string
type BlockKeyResponse ¶
type BlockKeyResponse struct {
// contains filtered or unexported fields
}
func (*BlockKeyResponse) Descriptor
deprecated
func (*BlockKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use BlockKeyResponse.ProtoReflect.Descriptor instead.
func (*BlockKeyResponse) ProtoMessage ¶
func (*BlockKeyResponse) ProtoMessage()
func (*BlockKeyResponse) ProtoReflect ¶
func (x *BlockKeyResponse) ProtoReflect() protoreflect.Message
func (*BlockKeyResponse) Reset ¶
func (x *BlockKeyResponse) Reset()
func (*BlockKeyResponse) String ¶
func (x *BlockKeyResponse) String() string
type DeleteCustomerRequest ¶
type DeleteCustomerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCustomerRequest) Descriptor
deprecated
func (*DeleteCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCustomerRequest.ProtoReflect.Descriptor instead.
func (*DeleteCustomerRequest) GetId ¶
func (x *DeleteCustomerRequest) GetId() string
func (*DeleteCustomerRequest) ProtoMessage ¶
func (*DeleteCustomerRequest) ProtoMessage()
func (*DeleteCustomerRequest) ProtoReflect ¶
func (x *DeleteCustomerRequest) ProtoReflect() protoreflect.Message
func (*DeleteCustomerRequest) Reset ¶
func (x *DeleteCustomerRequest) Reset()
func (*DeleteCustomerRequest) String ¶
func (x *DeleteCustomerRequest) String() string
type DeleteCustomerResponse ¶
type DeleteCustomerResponse struct {
// contains filtered or unexported fields
}
func (*DeleteCustomerResponse) Descriptor
deprecated
func (*DeleteCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCustomerResponse.ProtoReflect.Descriptor instead.
func (*DeleteCustomerResponse) ProtoMessage ¶
func (*DeleteCustomerResponse) ProtoMessage()
func (*DeleteCustomerResponse) ProtoReflect ¶
func (x *DeleteCustomerResponse) ProtoReflect() protoreflect.Message
func (*DeleteCustomerResponse) Reset ¶
func (x *DeleteCustomerResponse) Reset()
func (*DeleteCustomerResponse) String ¶
func (x *DeleteCustomerResponse) String() string
type DisableAPIRequest ¶
type DisableAPIRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DisableAPIRequest) Descriptor
deprecated
func (*DisableAPIRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisableAPIRequest.ProtoReflect.Descriptor instead.
func (*DisableAPIRequest) GetName ¶
func (x *DisableAPIRequest) GetName() string
func (*DisableAPIRequest) ProtoMessage ¶
func (*DisableAPIRequest) ProtoMessage()
func (*DisableAPIRequest) ProtoReflect ¶
func (x *DisableAPIRequest) ProtoReflect() protoreflect.Message
func (*DisableAPIRequest) Reset ¶
func (x *DisableAPIRequest) Reset()
func (*DisableAPIRequest) String ¶
func (x *DisableAPIRequest) String() string
type DisableAPIResponse ¶
type DisableAPIResponse struct {
// contains filtered or unexported fields
}
func (*DisableAPIResponse) Descriptor
deprecated
func (*DisableAPIResponse) Descriptor() ([]byte, []int)
Deprecated: Use DisableAPIResponse.ProtoReflect.Descriptor instead.
func (*DisableAPIResponse) ProtoMessage ¶
func (*DisableAPIResponse) ProtoMessage()
func (*DisableAPIResponse) ProtoReflect ¶
func (x *DisableAPIResponse) ProtoReflect() protoreflect.Message
func (*DisableAPIResponse) Reset ¶
func (x *DisableAPIResponse) Reset()
func (*DisableAPIResponse) String ¶
func (x *DisableAPIResponse) String() string
type EnableAPIRequest ¶
type EnableAPIRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*EnableAPIRequest) Descriptor
deprecated
func (*EnableAPIRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnableAPIRequest.ProtoReflect.Descriptor instead.
func (*EnableAPIRequest) GetName ¶
func (x *EnableAPIRequest) GetName() string
func (*EnableAPIRequest) ProtoMessage ¶
func (*EnableAPIRequest) ProtoMessage()
func (*EnableAPIRequest) ProtoReflect ¶
func (x *EnableAPIRequest) ProtoReflect() protoreflect.Message
func (*EnableAPIRequest) Reset ¶
func (x *EnableAPIRequest) Reset()
func (*EnableAPIRequest) String ¶
func (x *EnableAPIRequest) String() string
type EnableAPIResponse ¶
type EnableAPIResponse struct {
// contains filtered or unexported fields
}
func (*EnableAPIResponse) Descriptor
deprecated
func (*EnableAPIResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnableAPIResponse.ProtoReflect.Descriptor instead.
func (*EnableAPIResponse) ProtoMessage ¶
func (*EnableAPIResponse) ProtoMessage()
func (*EnableAPIResponse) ProtoReflect ¶
func (x *EnableAPIResponse) ProtoReflect() protoreflect.Message
func (*EnableAPIResponse) Reset ¶
func (x *EnableAPIResponse) Reset()
func (*EnableAPIResponse) String ¶
func (x *EnableAPIResponse) String() string
type GenerateKeyRequest ¶
type GenerateKeyRequest struct { Scopes []string `protobuf:"bytes,1,rep,name=scopes,proto3" json:"scopes,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*GenerateKeyRequest) Descriptor
deprecated
func (*GenerateKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateKeyRequest.ProtoReflect.Descriptor instead.
func (*GenerateKeyRequest) GetDescription ¶
func (x *GenerateKeyRequest) GetDescription() string
func (*GenerateKeyRequest) GetScopes ¶
func (x *GenerateKeyRequest) GetScopes() []string
func (*GenerateKeyRequest) ProtoMessage ¶
func (*GenerateKeyRequest) ProtoMessage()
func (*GenerateKeyRequest) ProtoReflect ¶
func (x *GenerateKeyRequest) ProtoReflect() protoreflect.Message
func (*GenerateKeyRequest) Reset ¶
func (x *GenerateKeyRequest) Reset()
func (*GenerateKeyRequest) String ¶
func (x *GenerateKeyRequest) String() string
type GenerateKeyResponse ¶
type GenerateKeyResponse struct { ApiKey string `protobuf:"bytes,1,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"` ApiKeyId string `protobuf:"bytes,2,opt,name=api_key_id,json=apiKeyId,proto3" json:"api_key_id,omitempty"` // contains filtered or unexported fields }
func (*GenerateKeyResponse) Descriptor
deprecated
func (*GenerateKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateKeyResponse.ProtoReflect.Descriptor instead.
func (*GenerateKeyResponse) GetApiKey ¶
func (x *GenerateKeyResponse) GetApiKey() string
func (*GenerateKeyResponse) GetApiKeyId ¶
func (x *GenerateKeyResponse) GetApiKeyId() string
func (*GenerateKeyResponse) ProtoMessage ¶
func (*GenerateKeyResponse) ProtoMessage()
func (*GenerateKeyResponse) ProtoReflect ¶
func (x *GenerateKeyResponse) ProtoReflect() protoreflect.Message
func (*GenerateKeyResponse) Reset ¶
func (x *GenerateKeyResponse) Reset()
func (*GenerateKeyResponse) String ¶
func (x *GenerateKeyResponse) String() string
type ListAPIsRequest ¶
type ListAPIsRequest struct {
// contains filtered or unexported fields
}
func (*ListAPIsRequest) Descriptor
deprecated
func (*ListAPIsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAPIsRequest.ProtoReflect.Descriptor instead.
func (*ListAPIsRequest) ProtoMessage ¶
func (*ListAPIsRequest) ProtoMessage()
func (*ListAPIsRequest) ProtoReflect ¶
func (x *ListAPIsRequest) ProtoReflect() protoreflect.Message
func (*ListAPIsRequest) Reset ¶
func (x *ListAPIsRequest) Reset()
func (*ListAPIsRequest) String ¶
func (x *ListAPIsRequest) String() string
type ListAPIsResponse ¶
type ListAPIsResponse struct { Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` // contains filtered or unexported fields }
func (*ListAPIsResponse) Descriptor
deprecated
func (*ListAPIsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAPIsResponse.ProtoReflect.Descriptor instead.
func (*ListAPIsResponse) GetNames ¶
func (x *ListAPIsResponse) GetNames() []string
func (*ListAPIsResponse) ProtoMessage ¶
func (*ListAPIsResponse) ProtoMessage()
func (*ListAPIsResponse) ProtoReflect ¶
func (x *ListAPIsResponse) ProtoReflect() protoreflect.Message
func (*ListAPIsResponse) Reset ¶
func (x *ListAPIsResponse) Reset()
func (*ListAPIsResponse) String ¶
func (x *ListAPIsResponse) String() string
type ListRequest ¶
type ListRequest struct {
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { ApiKeys []*APIKey `protobuf:"bytes,1,rep,name=api_keys,json=apiKeys,proto3" json:"api_keys,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetApiKeys ¶
func (x *ListResponse) GetApiKeys() []*APIKey
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type RevokeRequest ¶
type RevokeRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RevokeRequest) Descriptor
deprecated
func (*RevokeRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeRequest.ProtoReflect.Descriptor instead.
func (*RevokeRequest) GetId ¶
func (x *RevokeRequest) GetId() string
func (*RevokeRequest) ProtoMessage ¶
func (*RevokeRequest) ProtoMessage()
func (*RevokeRequest) ProtoReflect ¶
func (x *RevokeRequest) ProtoReflect() protoreflect.Message
func (*RevokeRequest) Reset ¶
func (x *RevokeRequest) Reset()
func (*RevokeRequest) String ¶
func (x *RevokeRequest) String() string
type RevokeResponse ¶
type RevokeResponse struct {
// contains filtered or unexported fields
}
func (*RevokeResponse) Descriptor
deprecated
func (*RevokeResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeResponse.ProtoReflect.Descriptor instead.
func (*RevokeResponse) ProtoMessage ¶
func (*RevokeResponse) ProtoMessage()
func (*RevokeResponse) ProtoReflect ¶
func (x *RevokeResponse) ProtoReflect() protoreflect.Message
func (*RevokeResponse) Reset ¶
func (x *RevokeResponse) Reset()
func (*RevokeResponse) String ¶
func (x *RevokeResponse) String() string
type UnblockKeyRequest ¶
type UnblockKeyRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` KeyId string `protobuf:"bytes,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` // contains filtered or unexported fields }
func (*UnblockKeyRequest) Descriptor
deprecated
func (*UnblockKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnblockKeyRequest.ProtoReflect.Descriptor instead.
func (*UnblockKeyRequest) GetKeyId ¶
func (x *UnblockKeyRequest) GetKeyId() string
func (*UnblockKeyRequest) GetNamespace ¶
func (x *UnblockKeyRequest) GetNamespace() string
func (*UnblockKeyRequest) GetUserId ¶
func (x *UnblockKeyRequest) GetUserId() string
func (*UnblockKeyRequest) ProtoMessage ¶
func (*UnblockKeyRequest) ProtoMessage()
func (*UnblockKeyRequest) ProtoReflect ¶
func (x *UnblockKeyRequest) ProtoReflect() protoreflect.Message
func (*UnblockKeyRequest) Reset ¶
func (x *UnblockKeyRequest) Reset()
func (*UnblockKeyRequest) String ¶
func (x *UnblockKeyRequest) String() string
type UnblockKeyResponse ¶
type UnblockKeyResponse struct {
// contains filtered or unexported fields
}
func (*UnblockKeyResponse) Descriptor
deprecated
func (*UnblockKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnblockKeyResponse.ProtoReflect.Descriptor instead.
func (*UnblockKeyResponse) ProtoMessage ¶
func (*UnblockKeyResponse) ProtoMessage()
func (*UnblockKeyResponse) ProtoReflect ¶
func (x *UnblockKeyResponse) ProtoReflect() protoreflect.Message
func (*UnblockKeyResponse) Reset ¶
func (x *UnblockKeyResponse) Reset()
func (*UnblockKeyResponse) String ¶
func (x *UnblockKeyResponse) String() string
type V1Handler ¶
type V1Handler interface { GenerateKey(context.Context, *GenerateKeyRequest, *GenerateKeyResponse) error ListKeys(context.Context, *ListRequest, *ListResponse) error RevokeKey(context.Context, *RevokeRequest, *RevokeResponse) error UnblockKey(context.Context, *UnblockKeyRequest, *UnblockKeyResponse) error BlockKey(context.Context, *BlockKeyRequest, *BlockKeyResponse) error DeleteCustomer(context.Context, *DeleteCustomerRequest, *DeleteCustomerResponse) error }
type V1Service ¶
type V1Service interface { GenerateKey(ctx context.Context, in *GenerateKeyRequest, opts ...client.CallOption) (*GenerateKeyResponse, error) ListKeys(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error) RevokeKey(ctx context.Context, in *RevokeRequest, opts ...client.CallOption) (*RevokeResponse, error) UnblockKey(ctx context.Context, in *UnblockKeyRequest, opts ...client.CallOption) (*UnblockKeyResponse, error) BlockKey(ctx context.Context, in *BlockKeyRequest, opts ...client.CallOption) (*BlockKeyResponse, error) DeleteCustomer(ctx context.Context, in *DeleteCustomerRequest, opts ...client.CallOption) (*DeleteCustomerResponse, error) }