admin

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_admin_proto protoreflect.FileDescriptor

Functions

func NewAdminEndpoints

func NewAdminEndpoints() []*api.Endpoint

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 added in v0.26.0

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 added in v0.26.0

func (*Usage) Descriptor() ([]byte, []int)

Deprecated: Use Usage.ProtoReflect.Descriptor instead.

func (*Usage) GetUnits added in v0.26.0

func (x *Usage) GetUnits() string

func (*Usage) GetUsage added in v0.26.0

func (x *Usage) GetUsage() int64

func (*Usage) ProtoMessage added in v0.26.0

func (*Usage) ProtoMessage()

func (*Usage) ProtoReflect added in v0.26.0

func (x *Usage) ProtoReflect() protoreflect.Message

func (*Usage) Reset added in v0.26.0

func (x *Usage) Reset()

func (*Usage) String added in v0.26.0

func (x *Usage) String() string

type UsageRequest added in v0.26.0

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 added in v0.26.0

func (*UsageRequest) Descriptor() ([]byte, []int)

Deprecated: Use UsageRequest.ProtoReflect.Descriptor instead.

func (*UsageRequest) GetTenantId added in v0.26.0

func (x *UsageRequest) GetTenantId() string

func (*UsageRequest) ProtoMessage added in v0.26.0

func (*UsageRequest) ProtoMessage()

func (*UsageRequest) ProtoReflect added in v0.26.0

func (x *UsageRequest) ProtoReflect() protoreflect.Message

func (*UsageRequest) Reset added in v0.26.0

func (x *UsageRequest) Reset()

func (*UsageRequest) String added in v0.26.0

func (x *UsageRequest) String() string

type UsageResponse added in v0.26.0

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 added in v0.26.0

func (*UsageResponse) Descriptor() ([]byte, []int)

Deprecated: Use UsageResponse.ProtoReflect.Descriptor instead.

func (*UsageResponse) GetUsage added in v0.26.0

func (x *UsageResponse) GetUsage() map[string]*Usage

func (*UsageResponse) ProtoMessage added in v0.26.0

func (*UsageResponse) ProtoMessage()

func (*UsageResponse) ProtoReflect added in v0.26.0

func (x *UsageResponse) ProtoReflect() protoreflect.Message

func (*UsageResponse) Reset added in v0.26.0

func (x *UsageResponse) Reset()

func (*UsageResponse) String added in v0.26.0

func (x *UsageResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL