Documentation ¶
Index ¶
- Constants
- func GetDirPath(dir string) (*string, error)
- func GetListenAddr(ipAddr string, port int) (*net.TCPAddr, error)
- func GetOutboundIP() (*net.IP, error)
- func NewClientConnSocket(socket string) *grpc.ClientConn
- func NewClientConnTcp(addr string) (*grpc.ClientConn, error)
- func NewConsulClient(address string) (*api.Client, error)
Constants ¶
View Source
const ( // ContextTimeout : default context timeout ContextTimeout = 5 * time.Second // DialTimeout : default dial timeout DialTimeout = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func GetDirPath ¶
GetDirPath : resolves full path for directory
func GetListenAddr ¶
GetListenAddr : returns the TCP listen addr
func GetOutboundIP ¶
GetOutboundIP : get preferred outbound ip of this machine
func NewClientConnSocket ¶
func NewClientConnSocket(socket string) *grpc.ClientConn
NewClientConnSocket : creates new socket ClientConn
func NewClientConnTcp ¶
func NewClientConnTcp(addr string) (*grpc.ClientConn, error)
NewClientConnTcp : creates new TCP ClientConn
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.