Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) CleanDatabase() error
- func (c *Client) Close() error
- func (c *Client) GetMatches() ([]match.Pair, error)
- func (c *Client) GetPair(key string) (*match.Pair, error)
- func (c *Client) GetUser(key string) (*csv.User, error)
- func (c *Client) GetUserList() ([]csv.User, error)
- func (c *Client) Open() error
- func (c *Client) SetBucket(buckets ...string)
- func (c *Client) StoreMatches(pl ...match.Pair) error
- func (c *Client) StoreUsers(ul ...csv.User) error
Constants ¶
View Source
const PairBucket = "pairs"
View Source
const UserBucket = "giftees"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Path string // contains filtered or unexported fields }
Client represents a client connection to a bolt database
func (*Client) CleanDatabase ¶
func (*Client) GetMatches ¶
GetMatches retrieves the list of Pairs from the database
func (*Client) GetUserList ¶
GetUserList retrieves the list of Users from the database
func (*Client) StoreMatches ¶
StoreMatches saves Pair data to the database. `pl` can be single or multiple Pair(s)
Click to show internal directories.
Click to hide internal directories.