Documentation ¶
Index ¶
- Variables
- func AddAccountCursor(client *database.MongoClient, accountName, cursor string) error
- func GetAccountCursor(client *database.MongoClient, accountName string) (*model.Cursor, error)
- func UpdateAccountCursor(client *database.MongoClient, accountName, cursor string) error
- type CursorData
- type CursorKey
- type CursorUpdateData
- type DynamoClient
- func (client *DynamoClient) AddAccountCursor(accountName, cursor string) error
- func (client *DynamoClient) CheckTableExists() error
- func (client *DynamoClient) CreateTable() error
- func (client *DynamoClient) GetAccountCursor(accountName string) (*model.Cursor, error)
- func (client *DynamoClient) UpdateAccountCursor(accountName, cursor string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var LOGGER = logging.MustGetLogger("database-client")
Functions ¶
func AddAccountCursor ¶
func AddAccountCursor(client *database.MongoClient, accountName, cursor string) error
func GetAccountCursor ¶
func UpdateAccountCursor ¶
func UpdateAccountCursor(client *database.MongoClient, accountName, cursor string) error
Types ¶
type CursorData ¶
type CursorUpdateData ¶
type CursorUpdateData struct {
Cursor string `json:":c"`
}
type DynamoClient ¶
func CreateConnection ¶
func CreateConnection() (*DynamoClient, error)
func (*DynamoClient) AddAccountCursor ¶
func (client *DynamoClient) AddAccountCursor(accountName, cursor string) error
func (*DynamoClient) CheckTableExists ¶
func (client *DynamoClient) CheckTableExists() error
func (*DynamoClient) CreateTable ¶
func (client *DynamoClient) CreateTable() error
func (*DynamoClient) GetAccountCursor ¶
func (client *DynamoClient) GetAccountCursor(accountName string) (*model.Cursor, error)
func (*DynamoClient) UpdateAccountCursor ¶
func (client *DynamoClient) UpdateAccountCursor(accountName, cursor string) error
Click to show internal directories.
Click to hide internal directories.