gorestful

package
v2.0.44 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 12 Imported by: 43

Documentation

Index

Constants

View Source
const (
	AppName = "restful_webframework"
)

Variables

This section is empty.

Functions

func ObjectRouter

func ObjectRouter(obj ioc.Object) *restful.WebService

func Priority added in v2.0.43

func Priority() int

func RootRouter

func RootRouter() *restful.Container

Types

type GoRestfulFramework

type GoRestfulFramework struct {
	ioc.ObjectImpl
	Container *restful.Container

	// 开启Trace
	Trace bool `toml:"trace" json:"trace" yaml:"trace" env:"TRACE"`
	//
	AccessLog bool `toml:"access_log" json:"access_log" yaml:"access_log" env:"ACCESS_LOG"`
	// contains filtered or unexported fields
}

func (*GoRestfulFramework) Init

func (g *GoRestfulFramework) Init() error

func (*GoRestfulFramework) Name

func (g *GoRestfulFramework) Name() string

func (*GoRestfulFramework) Priority

func (g *GoRestfulFramework) Priority() int

Jump to

Keyboard shortcuts

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