Documentation ¶
Index ¶
- type Identity
- type Secret
- type Transport
- func (t *Transport) Dial(network, address string) (net.Conn, error)
- func (t *Transport) DialContext(ctx context.Context, network, address string) (net.Conn, error)
- func (t *Transport) Listen(network, address string) (net.Listener, error)
- func (t *Transport) ListenContext(ctx context.Context, network, address string) (net.Listener, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identity ¶
type Identity interface { // Equals returns true if and only if the Identities are equal. Equals(q Identity) bool }
Identity is a public reference to a specific peer.
Identity is conceptually similar to a cryptographic public key and can be shared freely.
Identity is not validated or signed by any other authority and it is up to the application to determine if the peer presenting an Identity is trustworthy.
type Secret ¶
type Secret interface { // Identity returns the shareable Identity corresponding to this Secret. Identity() Identity }
Secret is a private value used to act as an Identity.
Secret is conceptually similar to a cryptographic private key and should not be shared.
func NewIdentity ¶
func NewIdentity() Secret
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func NewTransport ¶
func (*Transport) DialContext ¶
Click to show internal directories.
Click to hide internal directories.