cassandra

package
v0.0.0-...-33050dc Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConversationManager

type ConversationManager struct {
	Session *gocql.Session
}

func (ConversationManager) AddMember

func (m ConversationManager) AddMember(cID, memberID string) error

func (ConversationManager) Create

func (ConversationManager) CreateSchema

func (m ConversationManager) CreateSchema(schema string) error

func (ConversationManager) GetByID

func (m ConversationManager) GetByID(id string) (*pb.Conversation, error)

func (ConversationManager) GetByUserID

func (m ConversationManager) GetByUserID(userID string, limit int32, offset int32) ([]*pb.Conversation, error)

func (ConversationManager) RemoveMember

func (m ConversationManager) RemoveMember(cID, memberID string) error

func (ConversationManager) Update

type MessageManager

type MessageManager struct {
	Session *gocql.Session
}

func (MessageManager) CreateSchema

func (m MessageManager) CreateSchema(schema string) error

func (MessageManager) GetMessages

func (m MessageManager) GetMessages(conversationID string, limit int32, offset int32) ([]*pb.Message, error)

func (MessageManager) ReadMessages

func (m MessageManager) ReadMessages(cID string, mID string) error

func (MessageManager) SaveMessage

func (m MessageManager) SaveMessage(ms *pb.Message, conversationID string) error

Jump to

Keyboard shortcuts

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