gorestful

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

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 11

Documentation

Index

Constants

View Source
const (
	AppName = config.GoRestfulName
)

Variables

This section is empty.

Functions

func ModuleWebservice

func ModuleWebservice(obj ioc.ObjectInterface) *restful.WebService

ModuleWebservice 每个模块会创建一个新的 webservice,以模块名称作为路由前缀

func RootContainer

func RootContainer() *restful.Container

Types

type Framework

type Framework struct {
	ioc.ObjectImpl
	Container *restful.Container
	// contains filtered or unexported fields
}

func (*Framework) AccessLog

func (f *Framework) AccessLog(r *restful.Request, w *restful.Response, chain *restful.FilterChain)

func (*Framework) Close

func (f *Framework) Close(ctx context.Context) error

func (*Framework) Init

func (f *Framework) Init()

func (*Framework) Name

func (f *Framework) Name() string

func (*Framework) Priority

func (f *Framework) Priority() int

Jump to

Keyboard shortcuts

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