Documentation ¶
Index ¶
- Constants
- func IsTokenValid(token string) bool
- type Config
- func (config *Config) Enums() map[string]types.EnumFormatter
- func (config *Config) Get(key string) (string, error)
- func (config *Config) GetURL() *url.URL
- func (config *Config) QueryFields() []string
- func (config *Config) Set(key string, value string) error
- func (config *Config) SetURL(url *url.URL) error
- type JSON
- type Service
Constants ¶
View Source
const (
Scheme = "telegram"
)
Scheme is the identifying part of this service's configuration URL
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
Config for use within the telegram plugin
func (*Config) Enums ¶
func (config *Config) Enums() map[string]types.EnumFormatter
Enums returns the fields that should use a corresponding EnumFormatter to Print/Parse their values
func (*Config) QueryFields ¶
QueryFields returns the fields that are part of the Query of the service URL
Click to show internal directories.
Click to hide internal directories.