aengine

package
v0.0.0-...-fc11548 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BinaryMemcacheCodec = memcache.Codec{
	Marshal:   binaryMarshal,
	Unmarshal: binaryUnmarshal,
}

Can only marshal fixed-size data as defined by the encoding/binary package.

Functions

This section is empty.

Types

type AuthenticatedClientMaker

type AuthenticatedClientMaker struct {
	Scope []string
}

func (*AuthenticatedClientMaker) MakeClient

func (cm *AuthenticatedClientMaker) MakeClient(ctx context.Context) (*http.Client, error)

type CacheStore

type CacheStore struct {
	Prefix string
	Codec  memcache.Codec
}

func (*CacheStore) Delete

func (cs *CacheStore) Delete(ctx context.Context, key string) error

func (*CacheStore) Flush

func (cs *CacheStore) Flush(ctx context.Context) error

func (*CacheStore) Get

func (cs *CacheStore) Get(ctx context.Context, key string, v interface{}) error

func (*CacheStore) Set

func (cs *CacheStore) Set(ctx context.Context, key string, v interface{}) error

type ContextMaker

type ContextMaker struct {
	Namespace string
}

func (*ContextMaker) MakeContext

func (cm *ContextMaker) MakeContext(r *http.Request) (context.Context, error)

type GcsFileStore

type GcsFileStore struct {
	Bucket string
	Prefix string
}

func (*GcsFileStore) Load

func (fs *GcsFileStore) Load(ctx context.Context, path string) ([]byte, error)

func (*GcsFileStore) Save

func (fs *GcsFileStore) Save(ctx context.Context, path string, content []byte) error

type PermissionChecker

type PermissionChecker interface {
	CheckRead(ctx context.Context, kind, key string) (bool, error)
	CheckWrite(ctx context.Context, kind, key string) (bool, error)
}

type PersistentStore

type PersistentStore struct {
	Prefix            string
	PermissionChecker PermissionChecker
	Namespace         string
}

func (*PersistentStore) Get

func (ps *PersistentStore) Get(ctx context.Context, kind, key string, content interface{}) ([]data.Property, error)

func (*PersistentStore) Set

func (ps *PersistentStore) Set(ctx context.Context, kind, key string, properties []data.Property, content interface{}) error

func (*PersistentStore) Transact

func (ps *PersistentStore) Transact(ctx context.Context, f func(ctx context.Context) error) error

type UserService

type UserService struct{}

func (*UserService) ContextUser

func (us *UserService) ContextUser(ctx context.Context) string

Jump to

Keyboard shortcuts

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