cache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 6 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

type CacheableResponse

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

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{}) (response interface{}, err 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