Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_admin_proto protoreflect.FileDescriptor
Functions ¶
func NewAdminEndpoints ¶
func RegisterAdminHandler ¶
func RegisterAdminHandler(s server.Server, hdlr AdminHandler, opts ...server.HandlerOption) error
Types ¶
type AdminHandler ¶
type AdminHandler interface { DeleteData(context.Context, *DeleteDataRequest, *DeleteDataResponse) error Usage(context.Context, *UsageRequest, *UsageResponse) error }
type AdminService ¶
type AdminService interface { DeleteData(ctx context.Context, in *DeleteDataRequest, opts ...client.CallOption) (*DeleteDataResponse, error) Usage(ctx context.Context, in *UsageRequest, opts ...client.CallOption) (*UsageResponse, error) }
func NewAdminService ¶
func NewAdminService(name string, c client.Client) AdminService
type DeleteDataRequest ¶
type DeleteDataRequest struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteDataRequest) Descriptor
deprecated
func (*DeleteDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDataRequest.ProtoReflect.Descriptor instead.
func (*DeleteDataRequest) GetTenantId ¶
func (x *DeleteDataRequest) GetTenantId() string
func (*DeleteDataRequest) ProtoMessage ¶
func (*DeleteDataRequest) ProtoMessage()
func (*DeleteDataRequest) ProtoReflect ¶
func (x *DeleteDataRequest) ProtoReflect() protoreflect.Message
func (*DeleteDataRequest) Reset ¶
func (x *DeleteDataRequest) Reset()
func (*DeleteDataRequest) String ¶
func (x *DeleteDataRequest) String() string
type DeleteDataResponse ¶
type DeleteDataResponse struct {
// contains filtered or unexported fields
}
func (*DeleteDataResponse) Descriptor
deprecated
func (*DeleteDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDataResponse.ProtoReflect.Descriptor instead.
func (*DeleteDataResponse) ProtoMessage ¶
func (*DeleteDataResponse) ProtoMessage()
func (*DeleteDataResponse) ProtoReflect ¶
func (x *DeleteDataResponse) ProtoReflect() protoreflect.Message
func (*DeleteDataResponse) Reset ¶
func (x *DeleteDataResponse) Reset()
func (*DeleteDataResponse) String ¶
func (x *DeleteDataResponse) String() string
type Usage ¶
type Usage struct { Usage int64 `protobuf:"varint,1,opt,name=usage,proto3" json:"usage,omitempty"` // A number that represents the usage Units string `protobuf:"bytes,2,opt,name=units,proto3" json:"units,omitempty"` // contains filtered or unexported fields }
func (*Usage) Descriptor
deprecated
func (*Usage) ProtoMessage ¶
func (*Usage) ProtoMessage()
func (*Usage) ProtoReflect ¶
func (x *Usage) ProtoReflect() protoreflect.Message
type UsageRequest ¶
type UsageRequest struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // contains filtered or unexported fields }
func (*UsageRequest) Descriptor
deprecated
func (*UsageRequest) Descriptor() ([]byte, []int)
Deprecated: Use UsageRequest.ProtoReflect.Descriptor instead.
func (*UsageRequest) GetTenantId ¶
func (x *UsageRequest) GetTenantId() string
func (*UsageRequest) ProtoMessage ¶
func (*UsageRequest) ProtoMessage()
func (*UsageRequest) ProtoReflect ¶
func (x *UsageRequest) ProtoReflect() protoreflect.Message
func (*UsageRequest) Reset ¶
func (x *UsageRequest) Reset()
func (*UsageRequest) String ¶
func (x *UsageRequest) String() string
type UsageResponse ¶
type UsageResponse struct { Usage map[string]*Usage `` // map of endpoints to usage /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UsageResponse) Descriptor
deprecated
func (*UsageResponse) Descriptor() ([]byte, []int)
Deprecated: Use UsageResponse.ProtoReflect.Descriptor instead.
func (*UsageResponse) GetUsage ¶
func (x *UsageResponse) GetUsage() map[string]*Usage
func (*UsageResponse) ProtoMessage ¶
func (*UsageResponse) ProtoMessage()
func (*UsageResponse) ProtoReflect ¶
func (x *UsageResponse) ProtoReflect() protoreflect.Message
func (*UsageResponse) Reset ¶
func (x *UsageResponse) Reset()
func (*UsageResponse) String ¶
func (x *UsageResponse) String() string
Click to show internal directories.
Click to hide internal directories.