giner

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package giner provides abstraction layer for Gin Web Framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocByReq

func LocByReq(c *gin.Context) string

LocByReq returns the location of the request by the given context

func New

func New(o NewOptions) (*gin.Engine, error)

New creates a new Gin engine instance.

Types

type NewOptions

type NewOptions struct {
	AppEnv           string
	AllowOrigins     []string
	AllowMethods     []string
	AllowHeaders     []string
	AllowCredentials bool
}

NewOptions represents the options which can be set when creating a new Gin engine instance.

Jump to

Keyboard shortcuts

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