cache

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 8 Imported by: 0

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 (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

func (*CacheableService) Execute

func (c *CacheableService) Execute(ctx context.Context, request interface{}) (interface{}, error)

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

type NotCacheableResponse

type NotCacheableResponse struct {
	TestResponse1 int `json:"tr1"`
	TestResponse2 int `json:"tr2"`
}

type NotCacheableService

type NotCacheableService struct {
	CacheHitCount *big.Int
	gkBoot.BasicService
}

func NewNotCachableService

func NewNotCachableService() *NotCacheableService

func (*NotCacheableService) Execute

func (c *NotCacheableService) Execute(ctx context.Context, request interface{}) (response interface{}, err error)

Jump to

Keyboard shortcuts

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