route

package
v0.0.0-...-8444db5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: AGPL-3.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrCodeMarketError   api.ErrorCode = "market-error"
	ErrCodeInstallFailed api.ErrorCode = "install-failed"
)
View Source
const (
	WebsocketMessageTypeInit  = "init"
	WebsocketMessageTypeEvent = "event"
)

Variables

This section is empty.

Functions

func Mount

func Mount(r *chi.Mux, config *config.Config, ctn *service.Container)

func MountGateway

func MountGateway(r *chi.Mux, conf *config.Config, ctn *service.Container)

Types

type WebsocketMessage

type WebsocketMessage struct {
	Type    string          `json:"t"`
	Payload json.RawMessage `json:"p"`
}

func NewWebsocketMessage

func NewWebsocketMessage(dataType string, payload json.RawMessage) *WebsocketMessage

type WebsocketMessageEventPayload

type WebsocketMessageEventPayload struct {
	Data map[string]interface{} `json:"d"`
}

type WebsocketMessageInitPayload

type WebsocketMessageInitPayload struct {
	AppID repository.AppID `json:"id"`
}

Jump to

Keyboard shortcuts

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