etcd

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

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New(conf *model.Config, cache storage.Cacher, secrets storage.Secrets, timeout time.Duration) (*DB, error)

func (*DB) Auth

func (db *DB) Auth(ctx context.Context, req *aPb.AuthOpt) (*aPb.AuthResp, error)

func (*DB) Close

func (db *DB) Close()

func (DB) GetToken

func (db DB) GetToken(ctx context.Context, req *aPb.GetReq) (*aPb.GetResp, error)

func (DB) Init

func (r DB) Init(ctx context.Context, userid, namespace string)

func (*DB) List

func (r *DB) List(ctx context.Context, req *cPb.ListReq) (*cPb.ListResp, error)

func (*DB) Mutate

func (r *DB) Mutate(ctx context.Context, req *cPb.MutateReq) (*cPb.MutateResp, error)

Jump to

Keyboard shortcuts

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