board

package
v0.0.0-...-3f93e99 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: GPL-3.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 API

type API struct {
	board.Service
	logger.Logger
}

API dependencies

func CreateAPI

func CreateAPI(s board.Service, l logger.Logger) *API

CreateAPI creates API

func (*API) Get

func (a *API) Get(w http.ResponseWriter, r *http.Request)

Get board by id

func (*API) GetList

func (a *API) GetList(r *http.Request) ([]interface{}, error)

GetList implements handlers.ListService

func (*API) GetOne

func (a *API) GetOne(r *http.Request) (interface{}, error)

GetOne implements handlers.GetService

func (*API) List

func (a *API) List(w http.ResponseWriter, r *http.Request)

List boards

func (*API) Routes

func (a *API) Routes(router chi.Router)

Routes install handlers

type CardModel

type CardModel struct {
	ID          string `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
}

CardModel type

type LaneModel

type LaneModel struct {
	ID          string      `json:"id,omitempty"`
	Name        string      `json:"name,omitempty"`
	Description string      `json:"description,omitempty"`
	Type        string      `json:"type"`
	Layout      string      `json:"layout"`
	Lanes       []LaneModel `json:"lanes,omitempty"`
	Cards       []CardModel `json:"cards,omitempty"`
}

LaneModel type

type ListModel

type ListModel struct {
	ID          string `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
	Owner       string `json:"owner,omitempty"`
	State       string `json:"state,omitempty"`
	Shared      bool   `json:"shared,omitempty"`
}

ListModel type

type ListModelMapper

type ListModelMapper struct {
}

ListModelMapper type

func (ListModelMapper) List

func (m ListModelMapper) List(models []*board.ListModel) []interface{}

List mapping

func (ListModelMapper) ModelToPayload

func (ListModelMapper) ModelToPayload(m interface{}) interface{}

ModelToPayload mapping

type Model

type Model struct {
	ID          string      `json:"id,omitempty"`
	Name        string      `json:"name,omitempty"`
	Description string      `json:"description,omitempty"`
	Layout      string      `json:"layout,omitempty"`
	Owner       string      `json:"owner,omitempty"`
	State       string      `json:"state,omitempty"`
	Shared      bool        `json:"shared,omitempty"`
	Lanes       []LaneModel `json:"lanes,omitempty"`
}

Model type

type ModelMapper

type ModelMapper struct {
}

ModelMapper type

func (ModelMapper) ModelToPayload

func (ModelMapper) ModelToPayload(m interface{}) interface{}

ModelToPayload mapping

Jump to

Keyboard shortcuts

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