Documentation
¶
Index ¶
- type Document
- type Registry
- func (r *Registry) GetDocument(ctx context.Context, docType, name string) (string, error)
- func (r *Registry) GetHandlerQueueURL(ctx context.Context, name string) (url string, err error)
- func (r *Registry) GetNewDocHanders(ctx context.Context, docType string) ([]string, error)
- func (r *Registry) HandlerNewDoc(ctx context.Context, handler, docType string, register bool) error
- func (r *Registry) ListDocuments(ctx context.Context, docType, startToken string, maxDocs uint16) (*jsonball.DocumentList, error)
- func (r *Registry) OpenDocument(ctx context.Context, docType, name string) (jsonball.DocOps, error)
- func (r *Registry) RegisterDocumentType(ctx context.Context, docType string) error
- func (r *Registry) RegisterHandler(ctx context.Context, handler *event.RegisterHandler) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { ID uint64 Type uint64 Name string RegisteredAt *time.Time RefreshedAt *time.Time // contains filtered or unexported fields }
Document is an open document
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is a registry with a mysql backend
func NewRegistry ¶
NewRegistry opens a registry based on a connection string
func (*Registry) GetDocument ¶
GetDocument gets the current document content
func (*Registry) GetHandlerQueueURL ¶
GetHandlerQueueURL get the queue URL of an given handler
func (*Registry) GetNewDocHanders ¶
GetNewDocHanders gets handlers that want to handle new document of a given type
func (*Registry) HandlerNewDoc ¶
func (*Registry) ListDocuments ¶
func (r *Registry) ListDocuments(ctx context.Context, docType, startToken string, maxDocs uint16) (*jsonball.DocumentList, error)
ListDocuments lists documents of a given type
func (*Registry) OpenDocument ¶
OpenDocument opens a new or existing document.
func (*Registry) RegisterDocumentType ¶
RegisterDocumentType registers a new document type
func (*Registry) RegisterHandler ¶
RegisterHandler registers a new handler
Click to show internal directories.
Click to hide internal directories.