google

package
v0.0.0-...-de36cd9 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TokenFromWeb

func TokenFromWeb(option Option)

TokenFromWeb ****************************************************************************************************************************************

Types

type Context

type Context struct {
	*oauth2.Config
	*oauth2.Token

	AllDay       bool
	CalendarId   string
	Description  string
	Recurrency   []string
	Timezone     string
	StartTime    time.Time
	EndTime      time.Time
	Transparency string
	MaxResult    int64
	NextPage     string

	Header     textproto.MIMEHeader
	Body       []byte
	Attach     map[string][]byte
	AttachOnce sync.Once
}

Context ****************************************************************************************************************************************

func (*Context) ApplyOptions

func (o *Context) ApplyOptions(opts []Option, defa ...Option) (opt *Context)

ApplyOptions ****************************************************************************************************************************************

func (*Context) GetClientOption

func (o *Context) GetClientOption() option.ClientOption

GetClientOption ****************************************************************************************************************************************

type Event

type Event interface {
	EventId() string
	Err() error
}

Event ****************************************************************************************************************************************

type Events

type Events interface {
	Len() int
	Index(int) Event
	Err() error
	Next() string
}

Events ****************************************************************************************************************************************

type Message

type Message interface {
	Err() error
}

Message ****************************************************************************************************************************************

type Option

type Option func(*Context)

Option ****************************************************************************************************************************************

func ClientSecretOption

func ClientSecretOption(jsonKey string, scopes []string) Option

ClientSecretOption ****************************************************************************************************************************************

func OAuthTokenOption

func OAuthTokenOption(token string) Option

OAuthTokenOption ****************************************************************************************************************************************

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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