bq

package
v0.0.0-...-e2d00bc Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

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 NewClientWrapper(gcpProjectID string) Client

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

Jump to

Keyboard shortcuts

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