rest

package
v0.0.0-...-e7aca54 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FieldTypeSubject represents an event subject
	FieldTypeSubject string = "subject"

	// FieldTypeVerb represents a verb
	FieldTypeVerb string = "verb"

	// FieldTypeObject represents an object
	FieldTypeObject string = "object"

	// FieldTypeIndirectObject represents an  indirect object
	FieldTypeIndirectObject string = "indirect_object"

	// FieldTypePrepObject represents a prepositional object
	FieldTypePrepObject string = "prep_object"
)

Variables

This section is empty.

Functions

func GetBytes

func GetBytes(key interface{}) ([]byte, error)

Types

type RestServer

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

RestServer Type

func NewRestServer

func NewRestServer(db *model.DB, q *queue.Queue) *RestServer

NewRestServer creates a RestServer

func (*RestServer) MakeCommandRoutes

func (r *RestServer) MakeCommandRoutes(db *model.DB, logger *logger.Logger)

MakeCommandRoutes will bind router to http responses

func (*RestServer) MakeEventRoutes

func (r *RestServer) MakeEventRoutes(db *model.DB, logger *logger.Logger)

MakeEventRoutes will bind router to http responses

func (*RestServer) Start

func (s *RestServer) Start() error

Start will run the configured REST Server

func (*RestServer) Stop

func (s *RestServer) Stop(err error)

Stop will shutdown the REST Server

Jump to

Keyboard shortcuts

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