apiclient

package
v1.1.35 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedAPIClient

type CachedAPIClient struct {
	// contains filtered or unexported fields
}

func NewCachedAPIClient

func NewCachedAPIClient(api *client.Client, expiration time.Duration) *CachedAPIClient

NewCachedAPIClient creates an api client that caches the results for indicated expiration.

func (*CachedAPIClient) GetAssettypes

func (s *CachedAPIClient) GetAssettypes() (*client.AssettypeCollection, error)

GetAssettypes retrieves the list of assettypes with the associated checktypes.

func (*CachedAPIClient) GetChecktype

func (s *CachedAPIClient) GetChecktype(name string) (*client.Checktype, error)

GetChecktype retrieves the checktype with the indicated name.

Jump to

Keyboard shortcuts

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