user

package
v0.0.0-...-3715d0c Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func New

func New(db *bbolt.DB) *Manager

func (*Manager) Fetch

func (m *Manager) Fetch(id string) (*User, error)

func (*Manager) FetchAll

func (m *Manager) FetchAll() ([]*User, error)

func (*Manager) Query

func (m *Manager) Query(q string) ([]string, error)

func (*Manager) Save

func (m *Manager) Save(u *User) error

type User

type User struct {
	ID   string
	Name string
}

Jump to

Keyboard shortcuts

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