Documentation
¶
Overview ¶
Package client calls the SPECTRE server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client calls the SPECTRE server.
func (*Client) ClearDivergences ¶
ClearDivergences removes the divergences of one service environment.
func (*Client) ListDivergences ¶
func (c *Client) ListDivergences(ctx context.Context, filter model.DivergenceFilter) ([]model.State, []model.Divergence, error)
ListDivergences returns the states of the reporting mirrors and the recorded divergences that filter selects, ordered by source.
type Config ¶
type Config struct {
URL string `name:"server-url" default:"${server_url}" placeholder:"URL" help:"Base URL of the SPECTRE server."`
// Socket routes every call through a unix socket, such as a service mesh's
// egress socket, which routes by the URL's host.
Socket string `` /* 217-byte string literal not displayed */
}
Config locates the SPECTRE server.
Click to show internal directories.
Click to hide internal directories.