permits

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 12 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInternal = errors.New("internal failure")

Functions

This section is empty.

Types

type Service

type Service interface {

	// GetUsage returns the current group/user spent counts for the specified subject.
	// A client should specify the empty user id to get the group-level value.
	GetUsage(ctx context.Context, userId string, subj usage.Subject) (u usage.Usage, err error)
}

func NewService

func NewService(client ServiceClient) Service

func NewServiceMock

func NewServiceMock() Service

Jump to

Keyboard shortcuts

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