googlesheets

package
v1.8.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

type Config

type Config struct {
	Credentials string              `json:"credentials"`
	SheetId     string              `json:"sheetId"`
	SheetName   string              `json:"sheetName"`
	EventKeyMap []map[string]string `json:"eventKeyMap"`
	DestID      string              `json:"destId"`
	TestConfig  TestConfig          `json:"testConfig"`
}

type Credentials

type Credentials struct {
	Email      string `json:"client_email"`
	PrivateKey string `json:"private_key"`
	TokenUrl   string `json:"token_uri"`
}

type GoogleSheetsProducer added in v1.0.2

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

func NewProducer

func NewProducer(destination *backendconfig.DestinationT, o common.Opts) (*GoogleSheetsProducer, error)

NewProducer creates a producer based on destination config

func (*GoogleSheetsProducer) Close added in v1.2.0

func (*GoogleSheetsProducer) Close() error

func (*GoogleSheetsProducer) Produce added in v1.0.2

func (producer *GoogleSheetsProducer) Produce(jsonData json.RawMessage, _ interface{}) (statusCode int, respStatus, responseMessage string)

type TestConfig

type TestConfig struct {
	Endpoint     string `json:"endpoint"`
	AccessToken  string `json:"accessToken"`
	RefreshToken string `json:"refreshToken"`
}

Jump to

Keyboard shortcuts

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