config

package
v1.4.22 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Set provides a wire set.

Functions

This section is empty.

Types

type AccessLog added in v1.4.0

type AccessLog struct {
	Topic          string `split_words:"true"`
	TrustedProxies int    `split_words:"true" default:"0"`
}

func NewAccessLog added in v1.4.0

func NewAccessLog() (*AccessLog, error)

type ConversationIDs

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

ConversationIDs implements repository.ConversationIDs.

func (*ConversationIDs) Available

func (c *ConversationIDs) Available(conversationID model.ConversationID) bool

func (*ConversationIDs) List

func (c *ConversationIDs) List() []model.ConversationID

type LINEBot

type LINEBot struct {
	LINEChannelSecret          string   `split_words:"true" required:"true"`
	LINEChannelAccessToken     string   `split_words:"true" required:"true"`
	AllowConvIDs               []string `split_words:"true"`
	Port                       int      `split_words:"true" default:"8000"`
	CloudTasksLocation         string   `split_words:"true" required:"true"`
	CloudTasksQueue            string   `split_words:"true" required:"true"`
	InvokerServiceAccountID    string   `split_words:"true" required:"true"`
	InvokerServiceAccountEmail string   `split_words:"true" required:"true"`
}

func NewLINEBot

func NewLINEBot() (*LINEBot, error)

func (*LINEBot) Addr

func (c *LINEBot) Addr() string

func (*LINEBot) ConversationIDs

func (c *LINEBot) ConversationIDs() *ConversationIDs

type Otel

type Otel struct {
	SamplingRate float64 `split_words:"true" default:"0.1"`
}

func NewOtel

func NewOtel() (*Otel, error)

type Screenshot

type Screenshot struct {
	TargetURL      string        `split_words:"true" required:"true"`
	TargetSelector string        `split_words:"true" required:"true"`
	BrowserTimeout time.Duration `split_words:"true" default:"60s"`
}

func NewScreenshot

func NewScreenshot() (*Screenshot, error)

type Sentry added in v1.4.19

type Sentry struct {
	Enable bool   `split_words:"true" default:"false"`
	DSN    string `split_words:"true"`
}

func NewSentry added in v1.4.19

func NewSentry() (*Sentry, error)

type ServiceEndpoint added in v1.4.9

type ServiceEndpoint struct {
	ServiceEndpoint string `split_words:"true"`
	// contains filtered or unexported fields
}

func NewServiceEndpoint added in v1.4.9

func NewServiceEndpoint() (*ServiceEndpoint, error)

func (*ServiceEndpoint) ResolveServiceEndpoint added in v1.4.9

func (c *ServiceEndpoint) ResolveServiceEndpoint(path string) (*url.URL, error)

func (*ServiceEndpoint) Valid added in v1.4.10

func (c *ServiceEndpoint) Valid() bool

type Storage

type Storage struct {
	ImageBucket string `split_words:"true" required:"true"`
}

func NewStorage

func NewStorage() (*Storage, error)

type Time

type Time struct {
	DefaultTimezone string `split_words:"true"`
}

func NewTime

func NewTime() (*Time, error)

func (*Time) DefaultLocation

func (c *Time) DefaultLocation() *time.Location

Jump to

Keyboard shortcuts

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