logic

package
v0.0.0-...-ef20d55 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyReq

type EmptyReq struct{}

type HandlerObject

type HandlerObject struct {
	People       []string
	EmptyCounter int
	Timeout      int
	*cli.ExitCloseHandler
	cli.Helper
}

func New

func New(ec *cli.ExitClose) *HandlerObject

func (*HandlerObject) Commands

func (ho *HandlerObject) Commands() *handler.Commands

func (*HandlerObject) EC

func (ho *HandlerObject) EC() *cli.ExitClose

func (*HandlerObject) EmptyHandler

func (ho *HandlerObject) EmptyHandler(e *EmptyReq) int

func (*HandlerObject) EmptyUsage

func (*HandlerObject) EmptyUsage() *handler.CommandDetails

func (*HandlerObject) Handlers

func (ho *HandlerObject) Handlers(rnr *cli.Runner) []any

func (*HandlerObject) ListHandler

func (ho *HandlerObject) ListHandler(e *ListReq) []string

func (*HandlerObject) ListUsage

func (*HandlerObject) ListUsage() *handler.CommandDetails

func (*HandlerObject) PersonHandler

func (ho *HandlerObject) PersonHandler(p *PersonReq) *PersonResp

func (*HandlerObject) PersonUsage

func (*HandlerObject) PersonUsage() *handler.CommandDetails

func (*HandlerObject) Runner

func (ho *HandlerObject) Runner() *cli.Runner

func (*HandlerObject) SetTimeoutHandler

func (ho *HandlerObject) SetTimeoutHandler(e *SetTimeoutReq) *SetTimeoutResp

func (*HandlerObject) TimeoutHandler

func (ho *HandlerObject) TimeoutHandler(e *TimeoutReq)

type ListReq

type ListReq struct{}

type PersonReq

type PersonReq struct {
	Name string
	Age  int
}

type PersonResp

type PersonResp struct {
	Name string
}

type SetTimeoutReq

type SetTimeoutReq struct {
	Timeout int
}

type SetTimeoutResp

type SetTimeoutResp struct {
	Timeout int
}

type TimeoutReq

type TimeoutReq struct{}

Jump to

Keyboard shortcuts

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