Documentation
¶
Index ¶
- type AdminServer
- type InternalServer
- type Server
- func (s *Server) ListModelUsageSummaries(ctx context.Context, req *v1.ListModelUsageSummariesRequest) (*v1.ListModelUsageSummariesResponse, error)
- func (s *Server) ListUsageData(ctx context.Context, req *v1.ListUsageDataRequest) (*v1.ListUsageDataResponse, error)
- func (s *Server) Run(ctx context.Context, port int, authConfig config.AuthConfig) error
- func (s *Server) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminServer ¶ added in v0.10.0
type AdminServer struct { v1.UnimplementedAPIUsageServiceServer // contains filtered or unexported fields }
AdminServer is the server for the api-usage service.
func NewAdmin ¶ added in v0.10.0
func NewAdmin(store *pkgstore.Store, logger logr.Logger) *AdminServer
NewAdmin creates a new admin server.
func (*AdminServer) GetAggregatedSummary ¶ added in v0.10.0
func (s *AdminServer) GetAggregatedSummary(ctx context.Context, req *v1.GetAggregatedSummaryRequest) (*v1.AggregatedSummary, error)
GetAggregatedSummary aggregates the API usage in the specified time range.
type InternalServer ¶ added in v0.10.0
type InternalServer struct { v1.UnimplementedCollectionInternalServiceServer // contains filtered or unexported fields }
InternalServer is the server for the collection service.
func NewInternal ¶ added in v0.10.0
func NewInternal(store *store.Store, logger logr.Logger) *InternalServer
NewInternal creates a new internal server.
func (*InternalServer) CreateUsage ¶ added in v0.10.0
func (s *InternalServer) CreateUsage(ctx context.Context, req *v1.CreateUsageRequest) (*v1.Usage, error)
CreateUsage creates usage.
type Server ¶
type Server struct { v1.UnimplementedAPIUsageServiceServer // contains filtered or unexported fields }
Server is the server for the api-usage service.
func (*Server) ListModelUsageSummaries ¶ added in v1.12.0
func (s *Server) ListModelUsageSummaries(ctx context.Context, req *v1.ListModelUsageSummariesRequest) (*v1.ListModelUsageSummariesResponse, error)
ListModelUsageSummaries lists model usage summaries.
func (*Server) ListUsageData ¶ added in v1.3.0
func (s *Server) ListUsageData(ctx context.Context, req *v1.ListUsageDataRequest) (*v1.ListUsageDataResponse, error)
ListUsageData list the usages by groups.
Click to show internal directories.
Click to hide internal directories.