dbclient

package
v0.0.0-...-bbd6296 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 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 BoltClient

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

func (*BoltClient) AddTodo

func (bc *BoltClient) AddTodo(task string, date time.Time)

func (*BoltClient) ListTodos

func (bc *BoltClient) ListTodos()

func (*BoltClient) OpenBoltDB

func (bc *BoltClient) OpenBoltDB()

func (*BoltClient) RemoveTodo

func (bc *BoltClient) RemoveTodo(item string)

type Config

type Config struct {
	User string `json:"user"`
}

Config type

type IBoltClient

type IBoltClient interface {
	OpenBoltDB()
	ListTodos()
	AddTodo(string, time.Time)
	RemoveTodo(string)
}

type Todo

type Todo struct {
	Id   int    `json:"id"`
	Task string `json:"task"`
}

Entry type

Jump to

Keyboard shortcuts

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