bq

package
v0.0.0-...-31173c4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EnvKeyBQToken = "BIGQUERY_KEY"

	TableAnnouncement = "announcement"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetAnnouncementCount(from int64) (int64, error)
	Close() error
}

func NewClientWrapper

func NewClientWrapper(project string) Client

func NewInMemoryClient

func NewInMemoryClient() Client

type ClientWrapper

type ClientWrapper struct {
	// contains filtered or unexported fields
}

func (*ClientWrapper) Close

func (client *ClientWrapper) Close() error

func (*ClientWrapper) GetAnnouncementCount

func (c *ClientWrapper) GetAnnouncementCount(from int64) (int64, error)

type InMemoryClient

type InMemoryClient struct{}

func (*InMemoryClient) Close

func (c *InMemoryClient) Close() error

func (*InMemoryClient) GetAnnouncementCount

func (c *InMemoryClient) GetAnnouncementCount(from int64) (int64, error)

Jump to

Keyboard shortcuts

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