Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvKeyBQToken = "BIGQUERY_KEY" TableAnnouncement = "announcement" )
Variables ¶
This section is empty.
Functions ¶
func ToInterfaceSlice ¶
func ToInterfaceSlice(slice interface{}) ([]interface{}, error)
Types ¶
type Client ¶
type Client interface { Insert(tableId string, src interface{}) error GetAnnouncementCount(from int64) (int64, error) }
func NewClientWrapper ¶
func NewInMemoryClient ¶
func NewInMemoryClient() Client
type ClientWrapper ¶
type ClientWrapper struct {
// contains filtered or unexported fields
}
func (*ClientWrapper) GetAnnouncementCount ¶
func (c *ClientWrapper) GetAnnouncementCount(from int64) (int64, error)
func (*ClientWrapper) Insert ¶
func (c *ClientWrapper) Insert(tableId string, src interface{}) error
type InMemoryClient ¶
type InMemoryClient struct{}
func (*InMemoryClient) GetAnnouncementCount ¶
func (c *InMemoryClient) GetAnnouncementCount(from int64) (int64, error)
func (*InMemoryClient) Insert ¶
func (c *InMemoryClient) Insert(tableId string, src interface{}) error
Click to show internal directories.
Click to hide internal directories.