model

package
v0.0.0-...-5c7ffcf Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandler

func RegisterHandler(inputType string, handler Handler)

Types

type Handler

type Handler func(action string, resp *Resp) error

func GetHandler

func GetHandler(inputType string) (Handler, bool)

type Resp

type Resp struct {
	RespBase
	Data interface{} `json:"data"`
}

type RespBase

type RespBase struct {
	Success  bool     `json:"success,omitempty"`
	Message  string   `json:"message,omitempty"`
	DebuLogs []string `json:"debugLogs,omitempty"`
}

type RespDataBytes

type RespDataBytes struct {
	Base RespBase
	Data []byte `json:"data"`
}

Jump to

Keyboard shortcuts

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