server

package
v0.0.0-...-4b70f63 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReplicaReadConsistencyQuery         = "SET aurora_replica_read_consistency = ?"
	ReplicaReadConsistencyValueEventual = "eventual"
	ReplicaReadConsistencyValueGlobal   = "global"
	ReplicaReadConsistencyValueSession  = "session"
)

Variables

View Source
var (
	UninitializedSessionResponse      = newErrorResponse("session not yet initialized")
	SessionAlreadyInitializedResponse = newErrorResponse("session has already been initialized")
)

Functions

func NewCryptoPolicy

func NewCryptoPolicy(options *Options) *appencryption.CryptoPolicy

func NewMetastore

func NewMetastore(opts *Options) appencryption.Metastore

Types

type AppEncryption

type AppEncryption struct {
	pb.UnimplementedAppEncryptionServer
	// contains filtered or unexported fields
}

func NewAppEncryption

func NewAppEncryption(options *Options) *AppEncryption

func (*AppEncryption) Session

type Options

type Options struct {
	ServiceName            string        `long:"service" required:"yes" description:"The name of this service" env:"ASHERAH_SERVICE_NAME"`
	ProductID              string        `long:"product" required:"yes" description:"The name of the product that owns this service" env:"ASHERAH_PRODUCT_NAME"`
	ExpireAfter            time.Duration `long:"expire-after" description:"The amount of time a key is considered valid" env:"ASHERAH_EXPIRE_AFTER"`
	CheckInterval          time.Duration `long:"check-interval" description:"The amount of time before cached keys are considered stale" env:"ASHERAH_CHECK_INTERVAL"`
	Metastore              string        `` /* 183-byte string literal not displayed */
	ConnectionString       string        `` /* 137-byte string literal not displayed */
	ReplicaReadConsistency string        `` /* 187-byte string literal not displayed */
	DynamoDBEndpoint       string        `` /* 175-byte string literal not displayed */
	DynamoDBRegion         string        `` /* 185-byte string literal not displayed */
	DynamoDBTableName      string        `` /* 143-byte string literal not displayed */
	SessionCacheMaxSize    int           `` /* 142-byte string literal not displayed */
	SessionCacheDuration   time.Duration `` /* 141-byte string literal not displayed */
	KMS                    string        `` /* 135-byte string literal not displayed */
	RegionMap              RegionMap     `` /* 165-byte string literal not displayed */
	PreferredRegion        string        `long:"preferred-region" description:"The preferred AWS region (required if --kms=aws)" env:"ASHERAH_PREFERRED_REGION"`
	EnableRegionSuffix     bool          `` /* 166-byte string literal not displayed */
	EnableSessionCaching   bool          `long:"enable-session-caching" description:"Enable shared session caching" env:"ASHERAH_ENABLE_SESSION_CACHING"`
	Verbose                bool          `short:"v" long:"verbose" description:"Enable verbose logging output" env:"ASHERAH_VERBOSE"`
}

type RegionMap

type RegionMap map[string]string

func (RegionMap) UnmarshalFlag

func (r RegionMap) UnmarshalFlag(value string) error

Jump to

Keyboard shortcuts

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