Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProtoStratum Protocol name for Stratum ProtoStratum = "stratum" // TransportTCP Transport name for TCP TransportTCP = "tcp" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type C ¶
func (*C) LookupPool ¶
LookupPool searches for a single pool in the configuration
func (*C) LookupWorker ¶
LookupWorker searches for a worker configuration given the username for that worker.
func (*C) ReadConfig ¶
func (*C) SetDefaults ¶
func (c *C) SetDefaults()
func (*C) WriteConfig ¶
type Pool ¶
type Pool struct { Name string Address TransportAddress Username string Password string `default:"x"` Timeout int `default:"10"` }
type TransportAddress ¶
type TransportAddress string
func (TransportAddress) Parse ¶
func (t TransportAddress) Parse() (*Transport, error)
Parse parses a Transport Address (proto+transport://address:port) into a struct.
Click to show internal directories.
Click to hide internal directories.