Documentation ¶
Index ¶
- Constants
- Variables
- type BQDatasetID
- type BQPartition
- type BQTableID
- type CSBucket
- type CSObjectID
- type CSUrl
- type EventSchema
- type GoogleProjectID
- type IngestID
- type LogID
- type MsgState
- type MsgType
- type ObjectCompress
- type ObjectParser
- type ObjectSchema
- type ObjectType
- type ObjectURL
- type PubSubMessageID
- type PubSubTopicID
- type RequestID
Constants ¶
View Source
const ( MsgPubSub MsgType = "pubsub" MsgFailed MsgState = "failed" MsgRunning MsgState = "running" MsgCompleted MsgState = "completed" )
Variables ¶
View Source
var ( ErrInvalidOption = goerr.New("invalid option") // Bad request ErrInvalidRequest = goerr.New("invalid request") // Configuration error ErrNoSourceMatched = goerr.New("no source matched") ErrNoPolicyData = goerr.New("no policy data") // Runtime error ErrDataInsertion = goerr.New("failed to insert data to bigquery") ErrNoPolicyResult = goerr.New("no policy result") ErrInvalidPolicyResult = goerr.New("invalid policy result") ErrStateNotFound = goerr.New("state not found") ErrTableNotFound = goerr.New("table not found") // Assertion error ErrAssertion = goerr.New("assertion error") // Normal error ErrBlockingPubSub = goerr.New("blocking pubsub ack") ErrSchemaNotMatched = goerr.New("schema not matched") )
View Source
var (
AppVersion = "(none)"
)
Functions ¶
This section is empty.
Types ¶
type BQDatasetID ¶
type BQDatasetID string
func (BQDatasetID) String ¶
func (x BQDatasetID) String() string
type BQPartition ¶
type BQPartition string
const ( BQPartitionNone BQPartition = "" BQPartitionHour BQPartition = "hour" BQPartitionDay BQPartition = "day" BQPartitionMonth BQPartition = "month" BQPartitionYear BQPartition = "year" )
func (BQPartition) Type ¶ added in v0.1.2
func (x BQPartition) Type() bigquery.TimePartitioningType
type CSObjectID ¶
type CSObjectID string
func (CSObjectID) String ¶
func (x CSObjectID) String() string
type EventSchema ¶
type EventSchema string
EventSchema presents schema of event data that is received from HTTP request.
const ( CloudStorageEventSchema EventSchema = "cs" SwarmEventSchema EventSchema = "swarm" )
func (EventSchema) Query ¶
func (x EventSchema) Query() string
type GoogleProjectID ¶
type GoogleProjectID string
Google Cloud Platform
func (GoogleProjectID) String ¶ added in v0.0.5
func (x GoogleProjectID) String() string
type IngestID ¶
type IngestID string
Ingestion metadata
func NewIngestID ¶
func NewIngestID() IngestID
type ObjectCompress ¶
type ObjectCompress string
const ( NoCompress ObjectCompress = "" GZIPComp ObjectCompress = "gzip" )
type ObjectParser ¶
type ObjectParser string
Object information
const (
JSONParser ObjectParser = "json"
)
type ObjectSchema ¶
type ObjectSchema string
func (ObjectSchema) Query ¶
func (x ObjectSchema) Query() string
type ObjectType ¶ added in v0.0.5
type ObjectType string
const ( UnknownObject ObjectType = "" CloudStorageObject ObjectType = "cs" )
type ObjectURL ¶ added in v0.0.5
type ObjectURL string
func (ObjectURL) ParseAsCloudStorage ¶ added in v0.0.5
func (x ObjectURL) ParseAsCloudStorage() (CSBucket, CSObjectID, error)
func (ObjectURL) Type ¶ added in v0.0.5
func (x ObjectURL) Type() ObjectType
type PubSubMessageID ¶ added in v0.0.5
type PubSubMessageID string
type PubSubTopicID ¶ added in v0.0.5
type PubSubTopicID string
func (PubSubTopicID) String ¶ added in v0.0.5
func (x PubSubTopicID) String() string
Click to show internal directories.
Click to hide internal directories.