types

package
v0.0.0-...-93d891c Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoggerContextKey = ContextKey("logger")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WhatsApp WhatsAppConfig `yaml:"whatsapp"`
	Logger   LoggerConfig   `yaml:"logger"`
}

type ContextKey

type ContextKey string

used in the context as key type

type LoggerConfig

type LoggerConfig struct {
	Mode             string `yaml:"mode"`
	Encoding         string `yaml:"encoding"`
	Level            string `yaml:"level"`
	EnableStacktrace bool   `yaml:"enable_stacktrace"`
}

logger configuration

type WhatsAppConfig

type WhatsAppConfig struct {
	Version           string `yaml:"version"`
	BusinessAccountID string `yaml:"business_account_id"`
	PhoneNumberID     string `yaml:"phone_number_id"`
	AccessToken       string `yaml:"access_token"`
}

whatsapp client configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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