server

package
v0.14.0 Latest Latest
Warning

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

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

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