Documentation
¶
Index ¶
- Variables
- func NewEngine(conf *config.AppConfig, zw *logger.ZapWriter, cf *koanf.Koanf, ...) *gin.Engine
- type HttpEngine
- func (r *HttpEngine) ConfigCors()
- func (r *HttpEngine) Register()
- func (r *HttpEngine) Run() error
- func (r *HttpEngine) SetCredentials(b bool)
- func (r *HttpEngine) SetExposeHeaders(s []string)
- func (r *HttpEngine) SetHeaders(s []string)
- func (r *HttpEngine) SetMaxAge(age time.Duration)
- func (r *HttpEngine) SetMethods(s []string)
- func (r *HttpEngine) SetOrigin(s []string)
- func (r *HttpEngine) SetOriginFun(f func(origin string) bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderRouteSet = wire.NewSet(NewEngine, NewHttpEngine, v1.NewUserRoute)
Functions ¶
Types ¶
type HttpEngine ¶
type HttpEngine struct {
// contains filtered or unexported fields
}
func NewHttpEngine ¶
func NewHttpEngine( router *gin.Engine, conf *config.AppConfig, log *zap.SugaredLogger, ctx *system.AppContext, v1UserRoute *v1.UserRoute, ) (*HttpEngine, error)
func (*HttpEngine) ConfigCors ¶
func (r *HttpEngine) ConfigCors()
func (*HttpEngine) Register ¶
func (r *HttpEngine) Register()
func (*HttpEngine) Run ¶
func (r *HttpEngine) Run() error
func (*HttpEngine) SetCredentials ¶
func (r *HttpEngine) SetCredentials(b bool)
func (*HttpEngine) SetExposeHeaders ¶
func (r *HttpEngine) SetExposeHeaders(s []string)
func (*HttpEngine) SetHeaders ¶
func (r *HttpEngine) SetHeaders(s []string)
func (*HttpEngine) SetMaxAge ¶
func (r *HttpEngine) SetMaxAge(age time.Duration)
func (*HttpEngine) SetMethods ¶
func (r *HttpEngine) SetMethods(s []string)
func (*HttpEngine) SetOrigin ¶
func (r *HttpEngine) SetOrigin(s []string)
func (*HttpEngine) SetOriginFun ¶
func (r *HttpEngine) SetOriginFun(f func(origin string) bool)
Click to show internal directories.
Click to hide internal directories.