Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { Model(model ...interface{}) *orm.Query Select(model interface{}) error Insert(model ...interface{}) error Update(model interface{}) error Delete(model interface{}) error Exec(query interface{}, params ...interface{}) (*types.Result, error) ExecOne(query interface{}, params ...interface{}) (*types.Result, error) Query(coll, query interface{}, params ...interface{}) (*types.Result, error) Close() error }
DB represents the contract for a Postgres DB
type KafkaConsumerClient ¶
type KafkaConsumerClient interface { SubscribeTopics([]string, kafka.RebalanceCb) error Events() chan kafka.Event Assign([]kafka.TopicPartition) error Unassign() error Close() error }
KafkaConsumerClient interface
type PushProducer ¶
type PushProducer interface { SendAPNSPush(topic, deviceToken string, payload, messageMetadata map[string]interface{}, pushMetadata map[string]interface{}, pushExpiry int64, templateName string) error SendGCMPush(topic, deviceToken string, payload, messageMetadata map[string]interface{}, pushMetadata map[string]interface{}, pushExpiry int64, templateName string) error }
PushProducer interface
Click to show internal directories.
Click to hide internal directories.