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
Click to show internal directories.
Click to hide internal directories.