restapi

package
v0.0.0-...-96504fd Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

func New

func New(o ...func(options *Options)) *Module

func (Module) Controller

func (m Module) Controller() []service.Controller

func (Module) Done

func (m Module) Done(invoker zdi.Invoker) error

func (Module) Load

func (m Module) Load(invoker zdi.Invoker) (any, error)

func (Module) Name

func (m Module) Name() string

func (Module) Start

func (m Module) Start(invoker zdi.Invoker) error

func (Module) Tasks

func (m Module) Tasks() []service.Task

type Options

type Options struct {
	Prefix       string
	DisableAuth  bool
	ModelsDefine []define.Define
	ResponseHook func(c *znet.Context, model, args, method string) (next bool)
}

Jump to

Keyboard shortcuts

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