guardian

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(server rest.Server, store Store) *chi.Mux

Types

type Guardian

type Guardian struct {
	Id    string `json:"id"`
	Name  string `json:"name"`
	Email string `json:"email"`
	Phone string `json:"phone"`
	Note  string `json:"note"`
}

type Store

type Store interface {
	CheckPermission(userId string, guardianId string) (bool, error)
	GetGuardian(id string) (*Guardian, error)
	DeleteGuardian(id string) (int, error)
	UpdateGuardian(guardian Guardian) (int, error)
}

Jump to

Keyboard shortcuts

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