tags

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(client HttpClient) *API

func (*API) Get

func (a *API) Get(ctx context.Context, subscription int, database int) (*AllTags, error)

func (*API) GetFixed

func (a *API) GetFixed(ctx context.Context, subscription int, database int) (*AllTags, error)

func (*API) Put

func (a *API) Put(ctx context.Context, subscription int, database int, tags AllTags) error

func (*API) PutFixed

func (a *API) PutFixed(ctx context.Context, subscription int, database int, tags AllTags) error

type AllTags

type AllTags struct {
	Tags *[]*Tag `json:"tags,omitempty"`
}

type HttpClient

type HttpClient interface {
	Get(ctx context.Context, name, path string, responseBody interface{}) error
	Put(ctx context.Context, name, path string, requestBody interface{}, responseBody interface{}) error
}

type NotFound

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

func (*NotFound) Error

func (f *NotFound) Error() string

type Tag

type Tag struct {
	Key   *string `json:"key,omitempty"`
	Value *string `json:"value,omitempty"`
}

Jump to

Keyboard shortcuts

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