aqs

package
v0.0.0-...-11a205f Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Account   string `json:"account"`
	AccessKey string `json:"access_key"`
	QueueName string `json:"queue_name"`
}

Azure Queue Storage configuration file.

func (*Config) IsValid

func (c *Config) IsValid() bool

Checks is it valid or not

func (*Config) NewClient

func (c *Config) NewClient() (dialects.StorageClient, error)

Create a new StorageClient object based on a configuration file.

type QueueStorage

type QueueStorage struct {
	Account   string
	AccessKey string
	QueueName string
	Client    storage.QueueServiceClient
}

Azure Queue Storage dialect.

func (*QueueStorage) GetBatchConverter

func (c *QueueStorage) GetBatchConverter() dialects.BatchConverter

Returns the batch converter function

func (*QueueStorage) GetConverter

func (c *QueueStorage) GetConverter() dialects.Converter

Returns the converter function

func (*QueueStorage) IsBufferedStorage

func (c *QueueStorage) IsBufferedStorage() bool

It is a buffered storage.

func (*QueueStorage) Save

func (c *QueueStorage) Save(msg *bytes.Buffer) error

Send a single Event into the Azure Queue Storage.

Jump to

Keyboard shortcuts

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