server

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 *store.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.

func (*AdminServer) Run added in v0.10.0

func (s *AdminServer) Run(ctx context.Context, port int) error

Run starts the admin server.

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.

func (*InternalServer) Run added in v0.10.0

func (s *InternalServer) Run(ctx context.Context, port int) error

Run starts the internal gRPC server.

Jump to

Keyboard shortcuts

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