Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bbq ¶
type Bbq struct {
// contains filtered or unexported fields
}
Bbq writes the contents of kafka topics to bigquery
func NewBbq ¶
func NewBbq(gcpproject string, datesetName string, tables []*TableOptions, metricsNamespace string) (*Bbq, error)
NewBbq creates a new Bbq struct.
func (Bbq) Collect ¶ added in v0.1.1
func (m Bbq) Collect(ch chan<- prometheus.Metric)
func (Bbq) Describe ¶ added in v0.1.1
func (m Bbq) Describe(ch chan<- *prometheus.Desc)
type BytesCodec ¶ added in v0.1.1
type BytesCodec struct{}
func (*BytesCodec) Decode ¶ added in v0.1.1
func (d *BytesCodec) Decode(data []byte) (interface{}, error)
func (*BytesCodec) Encode ¶ added in v0.1.1
func (d *BytesCodec) Encode(value interface{}) ([]byte, error)
type TableOptions ¶
type TableOptions struct { Obj interface{} TimePartitioning *bigquery.TimePartitioning Input goka.Stream Codec goka.Codec }
TableOptions represents one kafka topic and the connected codec
func (*TableOptions) Name ¶
func (to *TableOptions) Name() string
Name returns the name of the topic
Click to show internal directories.
Click to hide internal directories.