Documentation ¶
Index ¶
Constants ¶
View Source
const ( // group CreateGroup = "create_group" JoinGroup = "join_group" LeaveGroup = "leave_group" // message SendMessage = "send_message" ReadMessage = "read_message" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateGroupType ¶
type TxnHandler ¶
type TxnHandler struct { CreateGroupHandler createGroupHandler JoinGroupHandler joinGroupHandler LeaveGroupHandler leaveGroupHandler SendMessageHandler sendMessageHandler ReadMessageHandler readMessageHandler }
func CreateNewTxnHandler ¶
func CreateNewTxnHandler(timestamp *model.Timestamp) *TxnHandler
func (TxnHandler) GetTxnHandler ¶
func (txn TxnHandler) GetTxnHandler(t string) TxnHandlerInterface
func (*TxnHandler) Init ¶
func (txn *TxnHandler) Init(timestamp *model.Timestamp) *TxnHandler
type TxnHandlerInterface ¶
type TxnHandlerInterface interface { Check(db.DB, interface{}) types.ResponseCheckTx Deliver(db.DB, interface{}) types.ResponseDeliverTx }
Click to show internal directories.
Click to hide internal directories.