api

package
v0.0.0-...-a35f291 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandStream

func NewCommandStream() *commandStream

Types

type Action

type Action struct {
	Type string

	Handle Handler
	// contains filtered or unexported fields
}

func (*Action) GetRegistry

func (self *Action) GetRegistry() *registry.Container

func (*Action) SetContainer

func (self *Action) SetContainer(r *registry.Container)

func (*Action) SetRegistry

func (self *Action) SetRegistry(r *registry.Container)

type CommonResponse

type CommonResponse struct {
	Type string `json:"type"`
}

type EchoIndexAction

type EchoIndexAction struct {
	Action
}

func NewEchoIndexAction

func NewEchoIndexAction(r *registry.Container) *EchoIndexAction

type EchoMsgIndexAction

type EchoMsgIndexAction struct {
	Action
}

func NewEchoMsgIndexAction

func NewEchoMsgIndexAction(r *registry.Container) *EchoMsgIndexAction

type EchoMsgRemoveAction

type EchoMsgRemoveAction struct {
	Action
}

func NewEchoMsgRemoveAction

func NewEchoMsgRemoveAction(r *registry.Container) *EchoMsgRemoveAction

type EchoMsgViewAction

type EchoMsgViewAction struct {
	Action
}

func NewEchoMsgViewAction

func NewEchoMsgViewAction(r *registry.Container) *EchoMsgViewAction

type Handler

type Handler func(req []byte) []byte

type IAction

type IAction interface {
	SetContainer(r *registry.Container)
	ServeHTTP(w http.ResponseWriter, r *http.Request)
}

type UpdateStateAction

type UpdateStateAction struct {
	Action
}

func NewUpdateStateAction

func NewUpdateStateAction(r *registry.Container) *UpdateStateAction

Jump to

Keyboard shortcuts

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