handler

package
v0.0.0-...-dad94d2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(w http.ResponseWriter, r *http.Request)

func Delete

func Delete(w http.ResponseWriter, r *http.Request)

func List

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

func Routes

func Routes() chi.Router

Routes creates a REST router

func SendEvent

func SendEvent(w http.ResponseWriter, r *http.Request)

func Update

func Update(w http.ResponseWriter, r *http.Request)

Types

type Event

type Event struct {

	// Identity record
	// Read Only: true
	// Format: ObjectId
	ID string `json:"_id,omitempty"`

	// state
	State string `json:"state"`
}

Event event swagger:model event

type Fsm

type Fsm struct {
	FSM fsm.FSM

	// Identity record
	// Read Only: true
	// Format: ObjectId
	ID string `json:"_id,omitempty"`

	// description
	Description string `json:"description"`

	// title
	Title string `json:"title"`
}

Fsm fsm swagger:model fsm

Jump to

Keyboard shortcuts

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