Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCacheNotFound = errors.New("cache not found")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
PutBlob(ctx context.Context, key string, blob []byte) error
GetBlob(ctx context.Context, key string) ([]byte, error)
}
func NewMockBlobsCacheClient ¶ added in v0.17.0
func NewMockBlobsCacheClient() Client
func NewRemoteBlobsCache ¶
type GetBlobRequest ¶
type GetBlobRequest struct {
Key string `json:"key"`
}
type GetBlobResponse ¶
type GetBlobResponse struct {
Blob json.RawMessage `json:"blob"`
}
type PubBlobRequest ¶
type PubBlobRequest struct {
Key string `json:"key"`
Blob json.RawMessage `json:"blob"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewBlobsCacheServer ¶
func NewBlobsCacheServer(log logrus.FieldLogger, cfg ServerConfig) *Server
type ServerConfig ¶
type ServerConfig struct {
ServePort int
}
Click to show internal directories.
Click to hide internal directories.