Documentation ¶
Overview ¶
Package chrysom provides a client in order to interact with argus.
Index ¶
- Constants
- func Metrics() []xmetrics.Metric
- type Auth
- type Client
- func (c *Client) GetItems(owner string) ([]model.Item, error)
- func (c *Client) Push(item model.Item, owner string) (string, error)
- func (c *Client) Remove(id string, owner string) (model.Item, error)
- func (c *Client) Start(ctx context.Context) error
- func (c *Client) Stop(ctx context.Context) error
- func (c *Client) Update(item model.Item, id string, owner string) (string, error)
- type ClientConfig
- type ConfigureListener
- type Listener
- type ListenerFunc
- type Option
- type PushReader
- type Pusher
- type Reader
Constants ¶
View Source
const ( SuccessOutcome = "success" FailureOutcomme = "failure" )
Label Values
View Source
const (
OutcomeLabel = "outcome"
)
Labels
View Source
const (
PollCounter = "chrysom_polls_total"
)
Names
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth struct { JWT acquire.RemoteBearerTokenAcquirerOptions Basic string }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func CreateClient ¶
func CreateClient(config ClientConfig) (*Client, error)
type ClientConfig ¶
type ConfigureListener ¶
type ListenerFunc ¶
func (ListenerFunc) Update ¶
func (listener ListenerFunc) Update(items []model.Item)
type Option ¶
type Option func(r *storeConfig)
Option is the function used to configure a store.
func WithListener ¶
WithListener sets a Listener to use for the store.
func WithLogger ¶
WithLogger sets a logger to use for the store.
func WithStorage ¶
WithStorage sets a Pusher to use for the store.
type PushReader ¶ added in v0.3.3
Click to show internal directories.
Click to hide internal directories.