catalog

package
v0.0.0-...-b76d47b Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(usecases Usecases) *Handler

func (*Handler) BlockTypes

func (h *Handler) BlockTypes(w http.ResponseWriter, r *http.Request)

func (*Handler) Contacts

func (h *Handler) Contacts(w http.ResponseWriter, r *http.Request)

func (*Handler) Formfactors

func (h *Handler) Formfactors(w http.ResponseWriter, r *http.Request)

func (*Handler) Modes

func (h *Handler) Modes(w http.ResponseWriter, r *http.Request)

func (*Handler) OTypes

func (h *Handler) OTypes(w http.ResponseWriter, r *http.Request)

func (*Handler) OpModes

func (h *Handler) OpModes(w http.ResponseWriter, r *http.Request)

func (*Handler) PinStates

func (h *Handler) PinStates(w http.ResponseWriter, r *http.Request)

type ReadInteractor

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

func NewReadInteractor

func NewReadInteractor(repo Repository) *ReadInteractor

func (*ReadInteractor) GetBlockTypes

func (r *ReadInteractor) GetBlockTypes() ([]string, error)

func (*ReadInteractor) GetContacts

func (r *ReadInteractor) GetContacts() ([]string, error)

func (*ReadInteractor) GetFormfactors

func (r *ReadInteractor) GetFormfactors() ([]string, error)

func (*ReadInteractor) GetModes

func (r *ReadInteractor) GetModes() ([]string, error)

func (*ReadInteractor) GetOTypes

func (r *ReadInteractor) GetOTypes() ([]string, error)

func (*ReadInteractor) GetOpModes

func (r *ReadInteractor) GetOpModes() ([]string, error)

func (*ReadInteractor) GetPinStates

func (r *ReadInteractor) GetPinStates() ([]string, error)

type Repo

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

func NewSQLRepository

func NewSQLRepository(db sqlutil.SQLDatabase) *Repo

func (*Repo) BlockTypes

func (r *Repo) BlockTypes() ([]string, error)

func (*Repo) Contacts

func (r *Repo) Contacts() ([]string, error)

func (*Repo) Formfactors

func (r *Repo) Formfactors() ([]string, error)

func (*Repo) Modes

func (r *Repo) Modes() ([]string, error)

func (*Repo) OTypes

func (r *Repo) OTypes() ([]string, error)

func (*Repo) OpModes

func (r *Repo) OpModes() ([]string, error)

func (*Repo) PinStates

func (r *Repo) PinStates() ([]string, error)

type Repository

type Repository interface {
	Formfactors() ([]string, error)
	BlockTypes() ([]string, error)
	Contacts() ([]string, error)
	Modes() ([]string, error)
	OTypes() ([]string, error)
	OpModes() ([]string, error)
	PinStates() ([]string, error)
}

type Usecases

type Usecases interface {
	GetFormfactors() ([]string, error)
	GetBlockTypes() ([]string, error)
	GetContacts() ([]string, error)
	GetModes() ([]string, error)
	GetOTypes() ([]string, error)
	GetOpModes() ([]string, error)
	GetPinStates() ([]string, error)
}

Jump to

Keyboard shortcuts

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