Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StaticClient ¶
StaticClient returns the client whose server address is srvAddr. If the client does not exist, set and return it.
Types ¶
type StaticClients ¶
type StaticClients struct {
// contains filtered or unexported fields
}
StaticClients static clients map
func (*StaticClients) Get ¶
func (s *StaticClients) Get(srvAddr string) (*ant.Client, bool)
Get returns the client whose server address is srvAddr.
func (*StaticClients) GetOrSet ¶
func (s *StaticClients) GetOrSet(srvAddr string) *ant.Client
GetOrSet returns the client whose server address is srvAddr. If the client does not exist, set and return it.
func (*StaticClients) Set ¶
func (s *StaticClients) Set(srvAddr string)
Set sets the client whose server address is srvAddr.
Click to show internal directories.
Click to hide internal directories.