Update dependencies
This commit is contained in:
25
vendor/github.com/akutz/memconn/memconn_addr.go
generated
vendored
Normal file
25
vendor/github.com/akutz/memconn/memconn_addr.go
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
package memconn
|
||||
|
||||
// Addr represents the address of an in-memory endpoint.
|
||||
type Addr struct {
|
||||
// Name is the name of the endpoint.
|
||||
Name string
|
||||
|
||||
network string
|
||||
}
|
||||
|
||||
// Buffered indicates whether or not the address refers to a buffered
|
||||
// network type.
|
||||
func (a Addr) Buffered() bool {
|
||||
return a.network == networkMemb
|
||||
}
|
||||
|
||||
// Network returns the address's network.
|
||||
func (a Addr) Network() string {
|
||||
return a.network
|
||||
}
|
||||
|
||||
// String returns the address's name.
|
||||
func (a Addr) String() string {
|
||||
return a.Name
|
||||
}
|
||||
Reference in New Issue
Block a user