Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheableRequest ¶
type CacheableRequest struct {
TestValue1 int `request:"header!" alias:"Test-Value-1" json:"tv1"`
TestValue2 string `request:"header!" alias:"Test-Value-2" json:"tv2"`
}
func (CacheableRequest) CacheKey ¶
func (c CacheableRequest) CacheKey() string
func (CacheableRequest) Info ¶
func (c CacheableRequest) Info() request.HttpRouteInfo
func (CacheableRequest) Validate ¶ added in v1.0.0
func (c CacheableRequest) Validate() error
type CacheableResponse ¶
type CacheableResponse struct {
TestResponse1 int `json:"tr1"`
TestResponse2 int `json:"tr2"`
response.ErrorResponse `json:"-"`
}
type CacheableService ¶
type CacheableService struct {
CacheHitCount *big.Int
gkBoot.BasicService
}
func NewCachableService ¶
func NewCachableService() *CacheableService
type NotCacheableRequest ¶
type NotCacheableRequest struct {
TestValue1 int `request:"header!" alias:"Test-Value-1" json:"tv1"`
TestValue2 string `request:"header!" alias:"Test-Value-2" json:"tv2"`
}
func (NotCacheableRequest) Info ¶
func (c NotCacheableRequest) Info() request.HttpRouteInfo
type NotCacheableResponse ¶
type NotCacheableService ¶
type NotCacheableService struct {
CacheHitCount *big.Int
gkBoot.BasicService
}
func NewNotCachableService ¶
func NewNotCachableService() *NotCacheableService
Click to show internal directories.
Click to hide internal directories.