eventgrid

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct{}

Generator will parse an existing `buffalo.App` and add the relevant code to make that application be ready for being subscribed to an Event Grid Topic.

func (*Generator) Run

func (eg *Generator) Run(app meta.App, name string, types map[string]reflect.Type) error

Run executes the Generator's main purpose, of extending a Buffalo application to listen for Event Grid Events.

type TemplateCache

type TemplateCache map[string][]byte

TemplateCache stores files used as templates, so that they will always be distributed along with thie buffalo-azure binary.

func (TemplateCache) Clear

func (c TemplateCache) Clear()

Clear removes all entries from a TemplateCache, so that they can be collected by the garbage collector.

func (TemplateCache) Rehydrate

func (c TemplateCache) Rehydrate(root string) error

Rehydrate writes the contents of each template file back to disk, rooted at the directory specified.

type TypeStub

type TypeStub struct {
	reflect.Type
	// contains filtered or unexported fields
}

TypeStub fulfills the reflect.Type interface, but only knows the fully qualified name of a type. All other details will panic upon use.

func NewTypeStub

func NewTypeStub(packagePath string, typeName string) (*TypeStub, error)

NewTypeStub creates a new reflect.Type stub based on a package and a type.

func NewTypeStubIdentifier

func NewTypeStubIdentifier(identifier string) (*TypeStub, error)

NewTypeStubIdentifier creates a new reflect.Type stub based on a fully-qualified Go type name. The expected format of the identifier is: <package path>.<type name>

For example: ``` github.com/Azure/azure-sdk-for-go/services/eventgrid/2018-01-01/eventgrid.StorageBlobCreatedEventData ```

func (*TypeStub) Name

func (t *TypeStub) Name() string

Name fetches the type's name within the package.

func (*TypeStub) PkgPath

func (t *TypeStub) PkgPath() string

PkgPath fetches the package's unique identifier.

Directories

Path Synopsis
Stuff
Stuff

Jump to

Keyboard shortcuts

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