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: 8 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) Create

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

Create implements handlers.CreateService

func (*API) CreateBoard

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

CreateBoard handler

func (*API) RemoveBoard

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

RemoveBoard handler

func (*API) RenameBoard

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

RenameBoard handler

func (*API) Routes

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

Routes install handlers

func (*API) ShareBoard

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

ShareBoard handler

type Board

type Board 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"`
	Shared      bool   `json:"shared,omitempty"`
}

Board api

Jump to

Keyboard shortcuts

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