purple: github.com/purpledb/purple Index | Files | Directories

package purple

import "github.com/purpledb/purple"

Index

Package Files

config.go errors.go

Variables

var (
    ErrNoKey                = errors.New("no resource key provided")
    ErrNoValue              = errors.New("no value provided")
    ErrNoAddress            = errors.New("no server address provided")
    ErrNoPort               = errors.New("no server port provided")
    ErrPortOutOfRange       = errors.New("port must be between 1024 and 49151")
    ErrBackendNotRecognized = errors.New("backend key not recognized")
    ErrNoBackend            = errors.New("no backend specified")
)

func IsNotFound Uses

func IsNotFound(err error) bool

type NotFoundError Uses

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

func NotFound Uses

func NotFound(key string) NotFoundError

func (NotFoundError) AsProtoStatus Uses

func (e NotFoundError) AsProtoStatus() error

func (NotFoundError) Error Uses

func (e NotFoundError) Error() string

type ServerConfig Uses

type ServerConfig struct {
    Port     int
    Debug    bool
    Backend  string
    RedisUrl string
}

func (*ServerConfig) Validate Uses

func (c *ServerConfig) Validate() error

Directories

PathSynopsis
cmd
cmd/purple-grpc
cmd/purple-http
internal/backend
internal/backend/disk
internal/backend/memory
internal/backend/redis
internal/data
internal/server/grpc
internal/server/http
internal/server/http/handler
internal/services/cache
internal/services/counter
internal/services/flag
internal/services/kv
internal/services/set
internal/util
proto
services/cache
services/counter
services/flag
services/kv
services/set

Package purple imports 4 packages (graph) and is imported by 24 packages. Updated 2020-05-30. Refresh now. Tools for package owners.