Documentation
¶
Index ¶
- 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) GetBackoff() *backoff.Backoff
- func (x *Config) GetPluginId() string
- func (x *Config) GetServerIdRegex() string
- func (x *Config) GetServiceIdRegex() string
- 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 (*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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// PluginId is the plugin to load and use as .
PluginId string `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"pluginId,omitempty"`
// ServiceIdRegex is the regex of service IDs to forward.
// If empty, will forward any.
ServiceIdRegex string `protobuf:"bytes,2,opt,name=service_id_regex,json=serviceIdRegex,proto3" json:"serviceIdRegex,omitempty"`
// ServerIdRegex is the regex of server IDs to forward for.
// If empty, will forward any.
ServerIdRegex string `protobuf:"bytes,3,opt,name=server_id_regex,json=serverIdRegex,proto3" json:"serverIdRegex,omitempty"`
// Backoff is the backoff config for calling the RPC service.
// If unset, defaults to reasonable defaults.
Backoff *backoff.Backoff `protobuf:"bytes,4,opt,name=backoff,proto3" json:"backoff,omitempty"`
// contains filtered or unexported fields
}
Config configures forwarding block lookups to plugins. Loads a plugin with LoadPlugin and uses its RPC client. Calls the AccessRpcService service. Resolves the LookupBlockFromNetwork directive.
func (*Config) CloneMessageVT ¶
func (m *Config) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Config) EqualMessageVT ¶
func (*Config) GetBackoff ¶
func (*Config) GetPluginId ¶
func (*Config) GetServerIdRegex ¶
func (*Config) GetServiceIdRegex ¶
func (*Config) MarshalJSON ¶
MarshalJSON marshals the Config to JSON.
func (*Config) MarshalProtoJSON ¶
func (x *Config) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Config message to JSON.
func (*Config) MarshalProtoText ¶
func (*Config) MarshalToSizedBufferVT ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Config from JSON.
func (*Config) UnmarshalProtoJSON ¶
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.