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 ¶
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
Click to show internal directories.
Click to hide internal directories.