v1

package
v0.0.0-...-5a2a765 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 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 API

type API struct {
	Stream   database.Stream
	Database database.Database
}

API struct for v1 of the go API

func (*API) Delete

func (a *API) Delete(ctx context.Context, in *Counter) (*Result, error)

Delete a counter

func (*API) Get

func (a *API) Get(ctx context.Context, in *Counter) (*Result, error)

Get a counter result TODO: Error defs TODO: database accepts proto message?

func (*API) Update

func (a *API) Update(ctx context.Context, in *Counter) (*Result, error)

Update a counter in the database

Jump to

Keyboard shortcuts

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