server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp() (*App, error)

func (*App) Start

func (a *App) Start() error

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(moduleLoader *module.ModuleLoader, moduleInvoker *module.ModuleInvoker) *Handler

func (*Handler) Handle

func (h *Handler) Handle(ctx *fasthttp.RequestCtx)

func (*Handler) Health

func (h *Handler) Health(ctx *fasthttp.RequestCtx)

type InvokeRequest

type InvokeRequest struct {
	Module string `json:"module"`
	Data   string `json:"data"`
}

type InvokeResponse

type InvokeResponse struct {
	Result string `json:"result"`
}

Jump to

Keyboard shortcuts

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