Documentation ¶
Index ¶
- Constants
- func EnvToInt64Slice(key string) []int64
- func GetBotAllowedUsers() []int64
- func GetBotDisallowedUsers() []int64
- func GetBotEnvironment() (value string)
- func GetBotStaticRoot() (value string)
- func GetBotTimeout() time.Duration
- func GetBotToken() (value string)
- func GetClickHouseOpts() *clickhouse.Options
- func GetHttpAddress() (value string)
- func GetHttpCertFile() string
- func GetHttpCertKey() string
- func GetHttpEndpoint() (value string)
- func GetHttpServerName() string
- func GetKafkaSeeds() []string
- func GetPostgresUrl() string
- func GetRedisAddress() []string
- func GetTimezone() (value string)
- func GetYdbCancelAfter() time.Duration
- func GetYdbConnectionString() string
- func GetYdbDatabase() (value string)
- func GetYdbDialTimeout() time.Duration
- func GetYdbEndpoint() (value string)
- func GetYdbOperationTimeout() time.Duration
- func GetYdbOpts() []ydbPlatform.Option
- func GetYdbServiceAccountKeyFileCredentials() (value string)
- func GetYdbTimeoutContext(ctx context.Context) (context.Context, context.CancelFunc)
- func GetYdbTransportTimeout() time.Duration
- func IsBotUserAllowed(userId int64) bool
- func IsHttpServer() bool
- func IsTestEnvironment() bool
- func IsYandexServerlessFunction() bool
Constants ¶
View Source
const DefaultBotStaticRoot = "."
View Source
const DefaultBotTimeout = time.Second * 10
View Source
const DefaultCancelAfter = time.Millisecond * 300
View Source
const DefaultDialTimeout = time.Second * 10
View Source
const DefaultOperationTimeout = time.Millisecond * 400
View Source
const DefaultTimezone = "Europe/Moscow"
View Source
const DefaultTransportTimeout = time.Millisecond * 500
Variables ¶
This section is empty.
Functions ¶
func EnvToInt64Slice ¶ added in v1.0.4
func GetBotAllowedUsers ¶
func GetBotAllowedUsers() []int64
func GetBotDisallowedUsers ¶ added in v1.0.4
func GetBotDisallowedUsers() []int64
func GetBotEnvironment ¶
func GetBotEnvironment() (value string)
func GetBotStaticRoot ¶ added in v1.0.4
func GetBotStaticRoot() (value string)
func GetBotTimeout ¶
func GetBotToken ¶
func GetBotToken() (value string)
func GetClickHouseOpts ¶ added in v1.0.10
func GetClickHouseOpts() *clickhouse.Options
func GetHttpAddress ¶
func GetHttpAddress() (value string)
func GetHttpCertFile ¶
func GetHttpCertFile() string
func GetHttpCertKey ¶
func GetHttpCertKey() string
func GetHttpEndpoint ¶
func GetHttpEndpoint() (value string)
func GetHttpServerName ¶
func GetHttpServerName() string
func GetKafkaSeeds ¶ added in v1.0.10
func GetKafkaSeeds() []string
func GetPostgresUrl ¶ added in v1.0.10
func GetPostgresUrl() string
func GetRedisAddress ¶ added in v1.0.8
func GetRedisAddress() []string
func GetTimezone ¶ added in v1.0.8
func GetTimezone() (value string)
func GetYdbCancelAfter ¶ added in v1.1.13
func GetYdbConnectionString ¶ added in v1.1.13
func GetYdbConnectionString() string
func GetYdbDatabase ¶ added in v1.1.13
func GetYdbDatabase() (value string)
func GetYdbDialTimeout ¶ added in v1.1.13
func GetYdbEndpoint ¶ added in v1.1.13
func GetYdbEndpoint() (value string)
func GetYdbOperationTimeout ¶ added in v1.1.13
func GetYdbOpts ¶ added in v1.1.13
func GetYdbOpts() []ydbPlatform.Option
func GetYdbServiceAccountKeyFileCredentials ¶ added in v1.1.13
func GetYdbServiceAccountKeyFileCredentials() (value string)
func GetYdbTimeoutContext ¶ added in v1.1.13
func GetYdbTransportTimeout ¶ added in v1.1.13
func IsBotUserAllowed ¶
func IsHttpServer ¶
func IsHttpServer() bool
func IsTestEnvironment ¶
func IsTestEnvironment() bool
func IsYandexServerlessFunction ¶ added in v1.0.4
func IsYandexServerlessFunction() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.