Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
Scheme string
Address NetAddress
User UserCredential
}
Connection's address and user credential.
func (Connection) String ¶
func (c Connection) String() string
String combines user and address into the form "user:password@host:port".
func (Connection) URL ¶
func (c Connection) URL() string
String combines scheme, user and address into the form "user:password@host:port".
type NetAddress ¶
NetAddress.
func (NetAddress) String ¶
func (a NetAddress) String() string
String combines host and port into a network address of the form "host:port". If host contains a colon, as found in literal IPv6 addresses, then JoinHostPort returns "[host]:port".
type UserCredential ¶
UserCredential consists of a user and a password.
func NewUserCredential ¶
func NewUserCredential(user string, password string) UserCredential
NewUserCredential creates a user credentia.
func (UserCredential) String ¶
func (u UserCredential) String() string
String combines user and password into the form "user:password".
Click to show internal directories.
Click to hide internal directories.