Documentation ¶
Index ¶
- type Client
- type Config
- func (m *Config) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Config) CloneVT() *Config
- func (this *Config) EqualMessageVT(thatMsg any) bool
- func (this *Config) EqualVT(that *Config) bool
- func (x *Config) GetPerServerBackoff() *backoff.Backoff
- func (x *Config) GetServerPeerIds() []string
- func (x *Config) GetSrcPeerId() string
- func (x *Config) GetTimeoutDur() string
- func (x *Config) GetTransportId() uint64
- func (x *Config) MarshalJSON() ([]byte, error)
- func (x *Config) MarshalProtoJSON(s *json.MarshalState)
- func (x *Config) MarshalProtoText() string
- func (m *Config) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Config) MarshalToVT(dAtA []byte) (int, error)
- func (m *Config) MarshalVT() (dAtA []byte, err error)
- func (c *Config) ParseServerPeerIds() ([]peer.ID, error)
- func (c *Config) ParseSrcPeerId() (peer.ID, error)
- func (c *Config) ParseTimeoutDur() (time.Duration, error)
- func (*Config) ProtoMessage()
- func (x *Config) Reset()
- func (m *Config) SizeVT() (n int)
- func (x *Config) String() string
- func (x *Config) UnmarshalJSON(b []byte) error
- func (x *Config) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Config) UnmarshalVT(dAtA []byte) error
- func (c *Config) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // ServerPeerIds are the static list of peer IDs to contact. ServerPeerIds []string `protobuf:"bytes,1,rep,name=server_peer_ids,json=serverPeerIds,proto3" json:"serverPeerIds,omitempty"` // PerServerBackoff is the server peer error backoff configuration. // Can be empty. PerServerBackoff *backoff.Backoff `protobuf:"bytes,2,opt,name=per_server_backoff,json=perServerBackoff,proto3" json:"perServerBackoff,omitempty"` // SrcPeerId is the source peer id to contact from. // Can be empty. SrcPeerId string `protobuf:"bytes,3,opt,name=src_peer_id,json=srcPeerId,proto3" json:"srcPeerId,omitempty"` // TransportId restricts which transport we can dial out from. TransportId uint64 `protobuf:"varint,4,opt,name=transport_id,json=transportId,proto3" json:"transportId,omitempty"` // TimeoutDur sets the per-server establish timeout. // If unset, no timeout. // Example: 15s TimeoutDur string `protobuf:"bytes,5,opt,name=timeout_dur,json=timeoutDur,proto3" json:"timeoutDur,omitempty"` // contains filtered or unexported fields }
Config configures a client for a srpc service.
func (*Config) CloneMessageVT ¶ added in v0.15.6
func (m *Config) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Config) EqualMessageVT ¶ added in v0.15.6
func (*Config) GetPerServerBackoff ¶
func (*Config) GetServerPeerIds ¶
func (*Config) GetSrcPeerId ¶
func (*Config) GetTimeoutDur ¶
func (*Config) GetTransportId ¶
func (*Config) MarshalJSON ¶ added in v0.29.0
MarshalJSON marshals the Config to JSON.
func (*Config) MarshalProtoJSON ¶ added in v0.29.0
func (x *Config) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Config message to JSON.
func (*Config) MarshalProtoText ¶ added in v0.29.2
func (*Config) MarshalToSizedBufferVT ¶
func (*Config) ParseServerPeerIds ¶
ParseServerPeerIds parses the destination peer ids
func (*Config) ParseSrcPeerId ¶
ParseSrcPeerId parses the source peer id, if set.
func (*Config) ParseTimeoutDur ¶
ParseTimeoutDur parses the timeout duration. returns zero if empty
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) UnmarshalJSON ¶ added in v0.29.0
UnmarshalJSON unmarshals the Config from JSON.
func (*Config) UnmarshalProtoJSON ¶ added in v0.29.0
func (x *Config) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Config message from JSON.
func (*Config) UnmarshalVT ¶
Click to show internal directories.
Click to hide internal directories.