redis

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Priority

type Priority struct {
	ID        int64             `json:"id"`
	Name      map[string]string `json:"name"`
	IsDefault bool              `json:"isDefault"`
}

type Project

type Project struct {
	ID       int64
	Name     string
	Trackers []misc.IDName
}

type Redis

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

func Connect

func Connect(host string) (Redis, error)

func (*Redis) Close

func (r *Redis) Close() error

func (*Redis) PrioritiesGet

func (r *Redis) PrioritiesGet() ([]Priority, error)

func (*Redis) PrioritiesSave

func (r *Redis) PrioritiesSave(priorities []Priority) error

func (*Redis) ProjectsGet

func (r *Redis) ProjectsGet() (map[int64]Project, error)

func (*Redis) ProjectsSave

func (r *Redis) ProjectsSave(projects map[int64]Project) error

func (*Redis) UsersGet

func (r *Redis) UsersGet() (map[int64]User, error)

func (*Redis) UsersSave

func (r *Redis) UsersSave(users map[int64]User) error

type User

type User struct {
	ID        int64  `json:"id"`
	Login     string `json:"login"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
}

Jump to

Keyboard shortcuts

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