postgres

package
v0.0.0-...-33ecef7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: MIT Imports: 17 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 is the database client

func New

func New() (*Client, error)

New returns a new database client

func (*Client) ThingDeleteById

func (c *Client) ThingDeleteById(ctx context.Context, id string) error

ThingDeleteById a thing

func (*Client) ThingFind

func (c *Client) ThingFind(ctx context.Context) ([]*thingrpc.Thing, error)

ThingFind gets things

func (*Client) ThingGetById

func (c *Client) ThingGetById(ctx context.Context, id string) (*thingrpc.Thing, error)

ThingGetByID returns the the thing by ID

func (*Client) ThingSave

func (c *Client) ThingSave(ctx context.Context, i *thingrpc.Thing) (string, error)

ThingSave saves the thing

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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