Documentation ¶
Index ¶
- type MappingBuilder
- func Any(path string) *MappingBuilder
- func Delete(path string) *MappingBuilder
- func Get(path string) *MappingBuilder
- func Head(path string) *MappingBuilder
- func New(names ...string) *MappingBuilder
- func Options(path string) *MappingBuilder
- func Patch(path string) *MappingBuilder
- func Post(path string) *MappingBuilder
- func Put(path string) *MappingBuilder
- func (b *MappingBuilder) Build() web.SimpleMapping
- func (b *MappingBuilder) Condition(condition web.RequestMatcher) *MappingBuilder
- func (b *MappingBuilder) Delete(path string) *MappingBuilder
- func (b *MappingBuilder) Get(path string) *MappingBuilder
- func (b *MappingBuilder) GetCondition() web.RequestMatcher
- func (b *MappingBuilder) GetMethod() string
- func (b *MappingBuilder) GetName() string
- func (b *MappingBuilder) GetPath() string
- func (b *MappingBuilder) Group(group string) *MappingBuilder
- func (b *MappingBuilder) HandlerFunc(handlerFunc interface{}) *MappingBuilder
- func (b *MappingBuilder) Head(path string) *MappingBuilder
- func (b *MappingBuilder) Method(method string) *MappingBuilder
- func (b *MappingBuilder) Name(name string) *MappingBuilder
- func (b *MappingBuilder) Options(path string) *MappingBuilder
- func (b *MappingBuilder) Patch(path string) *MappingBuilder
- func (b *MappingBuilder) Path(path string) *MappingBuilder
- func (b *MappingBuilder) Post(path string) *MappingBuilder
- func (b *MappingBuilder) Put(path string) *MappingBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MappingBuilder ¶
type MappingBuilder struct {
// contains filtered or unexported fields
}
MappingBuilder builds web.SimpleMapping MappingBuilder.Path, MappingBuilder.Method and MappingBuilder.HandlerFunc are required to successfully build a mapping. Supported handler function are gin.HandlerFunc or http.HandlerFunc Example: <code> mapping.Post("/path/to/api").HandlerFunc(func...).Build() </code>
func Any ¶
func Any(path string) *MappingBuilder
func Delete ¶
func Delete(path string) *MappingBuilder
func Get ¶
func Get(path string) *MappingBuilder
func Head ¶
func Head(path string) *MappingBuilder
func New ¶
func New(names ...string) *MappingBuilder
func Options ¶
func Options(path string) *MappingBuilder
func Patch ¶
func Patch(path string) *MappingBuilder
func Post ¶
func Post(path string) *MappingBuilder
func Put ¶
func Put(path string) *MappingBuilder
func (*MappingBuilder) Build ¶
func (b *MappingBuilder) Build() web.SimpleMapping
func (*MappingBuilder) Condition ¶
func (b *MappingBuilder) Condition(condition web.RequestMatcher) *MappingBuilder
func (*MappingBuilder) Delete ¶
func (b *MappingBuilder) Delete(path string) *MappingBuilder
func (*MappingBuilder) Get ¶
func (b *MappingBuilder) Get(path string) *MappingBuilder
func (*MappingBuilder) GetCondition ¶
func (b *MappingBuilder) GetCondition() web.RequestMatcher
func (*MappingBuilder) GetMethod ¶
func (b *MappingBuilder) GetMethod() string
func (*MappingBuilder) GetName ¶
func (b *MappingBuilder) GetName() string
func (*MappingBuilder) GetPath ¶
func (b *MappingBuilder) GetPath() string
func (*MappingBuilder) Group ¶
func (b *MappingBuilder) Group(group string) *MappingBuilder
func (*MappingBuilder) HandlerFunc ¶
func (b *MappingBuilder) HandlerFunc(handlerFunc interface{}) *MappingBuilder
HandlerFunc support - gin.HandlerFunc - http.HandlerFunc
func (*MappingBuilder) Head ¶
func (b *MappingBuilder) Head(path string) *MappingBuilder
func (*MappingBuilder) Method ¶
func (b *MappingBuilder) Method(method string) *MappingBuilder
func (*MappingBuilder) Name ¶
func (b *MappingBuilder) Name(name string) *MappingBuilder
func (*MappingBuilder) Options ¶
func (b *MappingBuilder) Options(path string) *MappingBuilder
func (*MappingBuilder) Patch ¶
func (b *MappingBuilder) Patch(path string) *MappingBuilder
func (*MappingBuilder) Path ¶
func (b *MappingBuilder) Path(path string) *MappingBuilder
func (*MappingBuilder) Post ¶
func (b *MappingBuilder) Post(path string) *MappingBuilder
func (*MappingBuilder) Put ¶
func (b *MappingBuilder) Put(path string) *MappingBuilder
Click to show internal directories.
Click to hide internal directories.