README ¶ Chatsavvy Instructions go get github.com/davesavic/chatsavvy Usage Refer to main.go in the examples directory. Warning This is a work in progress and is not yet ready for production use. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Migrate(client *mongo.Client, direction string) error type ChatSavvy func New(client *mongo.Client) (*ChatSavvy, error) func (cs *ChatSavvy) Close() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Migrate ¶ added in v0.0.2 func Migrate(client *mongo.Client, direction string) error Migrate runs the migrations in the specified direction (up or down). Beware that running migrations in the down direction will delete all data. Types ¶ type ChatSavvy ¶ type ChatSavvy struct { Conversation *repository.Conversation Message *repository.Message // contains filtered or unexported fields } func New ¶ func New(client *mongo.Client) (*ChatSavvy, error) func (*ChatSavvy) Close ¶ added in v0.0.2 func (cs *ChatSavvy) Close() error Source Files ¶ View all Source files chatsavvy.go Directories ¶ Show internal Expand all Path Synopsis cmd migrate command data examples migrations model repository testutil Click to show internal directories. Click to hide internal directories.