mongodb

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func New

func New(uri string) (*Repository, error)

func (*Repository) AllDialogs

func (repo *Repository) AllDialogs(frame neocortex.TimeFrame) ([]*neocortex.Dialog, error)

func (*Repository) AllViews

func (repo *Repository) AllViews() ([]*neocortex.View, error)

func (*Repository) ContextVars

func (repo *Repository) ContextVars() []string

func (*Repository) DeleteDialog

func (repo *Repository) DeleteDialog(id string) (*neocortex.Dialog, error)

func (*Repository) DeleteView

func (repo *Repository) DeleteView(id string) (*neocortex.View, error)

func (*Repository) DialogNodes

func (repo *Repository) DialogNodes() []string

func (*Repository) DialogsByView

func (repo *Repository) DialogsByView(viewID string, frame neocortex.TimeFrame) ([]*neocortex.Dialog, error)

func (*Repository) Entities

func (repo *Repository) Entities() []string

func (*Repository) FindViewByName

func (repo *Repository) FindViewByName(name string) ([]*neocortex.View, error)

func (*Repository) GetActionVar

func (repo *Repository) GetActionVar(name string) (string, error)

func (*Repository) GetDialogByID

func (repo *Repository) GetDialogByID(id string) (*neocortex.Dialog, error)

func (*Repository) GetViewByID

func (repo *Repository) GetViewByID(id string) (*neocortex.View, error)

func (*Repository) Intents

func (repo *Repository) Intents() []string

func (*Repository) RegisterContextVar

func (repo *Repository) RegisterContextVar(value string) error

func (*Repository) RegisterDialogNode

func (repo *Repository) RegisterDialogNode(name string) error

func (*Repository) RegisterEntity

func (repo *Repository) RegisterEntity(entity string) error

func (*Repository) RegisterIntent

func (repo *Repository) RegisterIntent(intent string) error

func (*Repository) SaveDialog

func (repo *Repository) SaveDialog(dialog *neocortex.Dialog) error

func (*Repository) SaveView

func (repo *Repository) SaveView(view *neocortex.View) error

func (*Repository) SetActionVar

func (repo *Repository) SetActionVar(name string, value string) error

func (*Repository) Summary

func (repo *Repository) Summary(frame neocortex.TimeFrame) (*neocortex.Summary, error)

func (*Repository) UpdateView

func (repo *Repository) UpdateView(view *neocortex.View) error

! MAKE GOOD UPDATE IN UPDATE VIEW

Jump to

Keyboard shortcuts

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