Documentation
¶
Index ¶
- Constants
- type Config
- func (this *Config) Alpha() float64
- func (this *Config) BlendMask(s string) string
- func (this *Config) BlendRoi(s string) string
- func (this *Config) BlendWith(s string) string
- func (this *Config) CachePeers() []string
- func (this *Config) CacheSelf() string
- func (this *Config) CacheSize() int64
- func (this *Config) DumpCfg() error
- func (this *Config) Format() string
- func (this *Config) Listen() string
- func (this *Config) Method() int
- func (this *Config) Quality() int
- func (this *Config) Root(scheme string) (string, error)
- func (this *Config) RootFile() (string, error)
- func (this *Config) RootHttp() (string, error)
- func (this *Config) Scheme() string
- type Source
Constants ¶
View Source
const ( CACHE_SIZE = int64(512) FORMAT = "jpeg" METHOD = 3 QUALITY = 80 ALPHA = 0.5 LISTEN_ON = "127.0.0.1:15900" CACHE_SELF = "http://127.0.0.1:9100" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ListenOn string `json:"listen"`
Sources struct {
Http Source `json:"http"`
File Source `json:"file"`
} `json:"source"`
Defaults struct {
Format string `json:"format"`
Method int `json:"method"`
Quality int `json:"quality"`
Alpha float64 `json:"blend_alpha"`
} `json:"defaults"`
GroupCache struct {
Self string `json:"self"`
Peers []string `json:"peers"`
Size string `json:"size"`
} `json:"groupcache"`
Blend struct {
With string `json:"with"`
Mask string `json:"mask"`
Roi string `json:roi`
}
}
func (*Config) CachePeers ¶
Click to show internal directories.
Click to hide internal directories.