Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompanyCtx ¶
type CompanyCtx struct {
// contains filtered or unexported fields
}
CompanyCtx is a middleware used to load Company to context.
func NewCompanyCtx ¶
func NewCompanyCtx(r handlers.CompaniesRepo) *CompanyCtx
NewCompanyCtx creates an instance of CompanyCtx middleware.
type CompanyPayloadCtx ¶
type CompanyPayloadCtx struct {
// contains filtered or unexported fields
}
CompanyCtx is a middleware used to validate incoming Company payload data.
func NewCompanyPayloadCtx ¶
func NewCompanyPayloadCtx(v *validator.Validation, queryDecoder *schema.Decoder) *CompanyPayloadCtx
NewCompanyPayloadCtx creates an instance of CompanyPayloadCtx middleware.
type Ipapi ¶
type Ipapi struct {
// contains filtered or unexported fields
}
Ipapi is a middleware that fetches the country code for request IP address, and verifies if it's allowed to proceed.
Click to show internal directories.
Click to hide internal directories.