Documentation ¶
Index ¶
- Constants
- Variables
- type Api
- func (a *Api) Check(c *gin.Context)
- func (a *Api) CreateApiKey(c *gin.Context)
- func (a *Api) GetApiKey(c *gin.Context)
- func (a *Api) HealthLiveness(c *gin.Context)
- func (a *Api) HealthMetrics(c *gin.Context)
- func (a *Api) HealthReadiness(c *gin.Context)
- func (a *Api) ListApiKeys(c *gin.Context)
- func (a *Api) Routes(prefix string) *gin.Engine
- func (a *Api) Verify(c *gin.Context)
- type ApiKey
- type ApiKeyResponse
- type Config
Constants ¶
View Source
const ( API_KEY_DEFAULT_HEADER = "X-API-KEY" SIGNATURE_DEFAULT_HEADER = "X-Signature" TIMESTAMP_DEFAULT_HEADER = "X-Timestamp" )
View Source
const MAX_EXTRA_SIZE = 2048
Variables ¶
View Source
var ErrInvalidApiKey = errors.New("Invalid API key")
Functions ¶
This section is empty.
Types ¶
type Api ¶
func (*Api) CreateApiKey ¶
func (*Api) HealthLiveness ¶ added in v0.1.1
func (*Api) HealthMetrics ¶ added in v0.1.1
func (*Api) HealthReadiness ¶ added in v0.1.1
func (*Api) ListApiKeys ¶
type ApiKey ¶
func ParseApiKey ¶
type ApiKeyResponse ¶
Click to show internal directories.
Click to hide internal directories.