isp

package
v0.0.0-...-7c18459 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encrypt

func Encrypt(ctx context.Context, data []byte) ([]byte, error)

func EncryptV2

func EncryptV2(keyValue Value, monitor Monitor, data []byte) ([]byte, error)

func Speak

func Speak()

func UseEncryptV2

func UseEncryptV2()

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func (*Cache) Get

func (c *Cache) Get(key string) interface{}

func (*Cache) Set

func (c *Cache) Set(key string, value interface{})

type CacheV2

type CacheV2 struct {
	// contains filtered or unexported fields
}

func (*CacheV2) Get

func (c *CacheV2) Get(key string) interface{}

func (*CacheV2) Set

func (c *CacheV2) Set(key string, value interface{})

type Dog

type Dog struct{}

func (Dog) SayHello

func (d Dog) SayHello() string

The method implicitly implements the Talker interface

type FatDbInterface

type FatDbInterface interface {
	BatchGetItem(IDs ...int) ([]Item, error)
	BatchGetItemWithContext(ctx context.Context, IDs ...int) ([]Item, error)

	BatchPutItem(items ...Item) error
	BatchPutItemWithContext(ctx context.Context, items ...Item) error

	DeleteItem(ID int) error
	DeleteItemWithContext(ctx context.Context, item Item) error

	GetItem(ID int) (Item, error)
	GetItemWithContext(ctx context.Context, ID int) (Item, error)

	PutItem(item Item) error
	PutItemWithContext(ctx context.Context, item Item) error

	Query(query string, args ...interface{}) ([]Item, error)
	QueryWithContext(ctx context.Context, query string, args ...interface{}) ([]Item, error)

	UpdateItem(item Item) error
	UpdateItemWithContext(ctx context.Context, item Item) error
}

type Item

type Item struct {
	Key     string
	Payload []byte
}

type Monitor

type Monitor interface {
	Done() <-chan struct{}
}

type Talker

type Talker interface {
	SayHello() string
}

type Value

type Value interface {
	Value(key interface{}) interface{}
}

Jump to

Keyboard shortcuts

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