handler

package
v0.0.0-...-0158116 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseHandler

type BaseHandler struct {
	Ctx context.Context
}

func (*BaseHandler) GetInputData

func (h *BaseHandler) GetInputData() *InputData

func (*BaseHandler) Input

func (h *BaseHandler) Input(ctx context.Context)

type DataItem

type DataItem struct {
	Type  string
	Name  string
	Extra interface{}
}

type IHandler

type IHandler interface {
	GetName() string
	Input(ctx context.Context)
	Output() interface{}
}

type InputData

type InputData struct {
	CommonData interface{}
	Data       DataItem
	Extra      interface{}
}

type NameBig

type NameBig struct {
	BaseHandler
}

func NewNameBig

func NewNameBig() *NameBig

func (*NameBig) GetName

func (h *NameBig) GetName() string

func (*NameBig) Output

func (h *NameBig) Output() interface{}

type NameSmall

type NameSmall struct {
	BaseHandler
}

func NewNameSmall

func NewNameSmall() *NameSmall

func (*NameSmall) GetName

func (h *NameSmall) GetName() string

func (*NameSmall) Output

func (h *NameSmall) Output() interface{}

Jump to

Keyboard shortcuts

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