| Name | Type | Description | Notes |
|---|---|---|---|
| Endpoint | Endpoint | ||
| PublicKey | string |
func NewPeer(endpoint Endpoint, publicKey string, ) *Peer
NewPeer instantiates a new Peer object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewPeerWithDefaults() *Peer
NewPeerWithDefaults instantiates a new Peer object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Peer) GetEndpoint() Endpoint
GetEndpoint returns the Endpoint field if non-nil, zero value otherwise.
func (o *Peer) GetEndpointOk() (*Endpoint, bool)
GetEndpointOk returns a tuple with the Endpoint field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Peer) SetEndpoint(v Endpoint)
SetEndpoint sets Endpoint field to given value.
func (o *Peer) GetPublicKey() string
GetPublicKey returns the PublicKey field if non-nil, zero value otherwise.
func (o *Peer) GetPublicKeyOk() (*string, bool)
GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Peer) SetPublicKey(v string)
SetPublicKey sets PublicKey field to given value.