storage

package
v0.0.0-...-7fa8e96 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

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 interfaces with bigtable to store persisted metrics payloads

func New

func New(ctx context.Context, cfg Config) (*Client, error)

New returns a new Client.

func (*Client) Remove

func (s *Client) Remove(rowKeys []string) error

Remove removes a set of rowkeys from bigtable

func (*Client) Retrieve

func (s *Client) Retrieve() (map[string]payloads.DataDogIntakePayload, error)

Retrieve unmarshals and returns metrics payloads from bigtable

func (*Client) Store

func (s *Client) Store(rowKey string, data payloads.PersistPayload) error

Store persists a payload to bigtable

type Config

type Config struct {
	Project   string
	Instance  string
	TableName string
	Prefix    string
}

Config for a StorageClient

func (*Config) RegisterFlags

func (cfg *Config) RegisterFlags(f *flag.FlagSet)

RegisterFlags adds the flags required to config this to the given FlagSet

Jump to

Keyboard shortcuts

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