wrapper

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 3 Imported by: 3

README

Wrapper

This directory is used to storage wrapper

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetWrapOpt

type SetWrapOpt func(base *WrapOptBase)

func InputType

func InputType(p reflect.Type) SetWrapOpt

func LogFunc

func LogFunc(logFunc func(log *middleware.TrafficLog)) SetWrapOpt

func LogReqAndResp

func LogReqAndResp() SetWrapOpt

func Orchestrator

func Orchestrator(o droplet.Orchestrator) SetWrapOpt

func ReadFromBody

func ReadFromBody() SetWrapOpt

type WrapOptBase

type WrapOptBase struct {
	InputType      reflect.Type
	IsReadFromBody bool

	TrafficLogOpt middleware.TrafficLogOpt

	Orchestrator droplet.Orchestrator
}

Directories

Path Synopsis
gin module
gorestful module

Jump to

Keyboard shortcuts

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