Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvisioner ¶
func NewProvisioner(name, region string) (awscreate.Provisioner[s3rpccreate.CreateResults], error)
NewProvisioner returns a new Provisioner that can be used to create and destroy an AWS environment with all the users, buckets and queues needed for s3rpc. Pass the result into PrintProvisionResults.
func PrintProvisionResults ¶
func PrintProvisionResults(outputs s3rpccreate.CreateResults)
PrintProvisionResults prints the config releventa parts of the provision results to stdout, sutiable for sourcing in a shell script.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for executing operations on a server.
func NewClient ¶
func NewClient(opts ClientOptions) (*Client, error)
NewClient creates a new client.
type ClientOptions ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a server that processes files from an S3 bucket.
func NewServer ¶
func NewServer(opts ServerOptions) (*Server, error)
NewServer creates a new server.
func (*Server) ListenAndServe ¶
ListenAndServe listens for messages and processes them. It blocks until the server is closed.
type ServerOptions ¶
type ServerOptions struct { // Handlers maps an operation to a handler. // The operation is also the first path segment below in/out in the bucket. Handlers Handlers // The in queue to poll for new messages. Queue string // PollInterval is the interval between polling for new messages. PollInterval time.Duration // Infof logs info messages. Infof func(format string, args ...interface{}) // The AWS config. AWSConfig }
ServerOptions are options for the server.
Click to show internal directories.
Click to hide internal directories.