latency

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_node_latency_latency_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Dns

type Dns struct {
	Host         string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	TargetDomain string `protobuf:"bytes,2,opt,name=target_domain,json=target_name,proto3" json:"target_domain,omitempty"`
	// contains filtered or unexported fields
}

func (*Dns) Descriptor deprecated

func (*Dns) Descriptor() ([]byte, []int)

Deprecated: Use Dns.ProtoReflect.Descriptor instead.

func (*Dns) GetHost

func (x *Dns) GetHost() string

func (*Dns) GetTargetDomain

func (x *Dns) GetTargetDomain() string

func (*Dns) ProtoMessage

func (*Dns) ProtoMessage()

func (*Dns) ProtoReflect

func (x *Dns) ProtoReflect() protoreflect.Message

func (*Dns) Reset

func (x *Dns) Reset()

func (*Dns) String

func (x *Dns) String() string

type DnsOverQuic

type DnsOverQuic struct {
	Host         string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	TargetDomain string `protobuf:"bytes,2,opt,name=target_domain,json=target_name,proto3" json:"target_domain,omitempty"`
	// contains filtered or unexported fields
}

func (*DnsOverQuic) Descriptor deprecated

func (*DnsOverQuic) Descriptor() ([]byte, []int)

Deprecated: Use DnsOverQuic.ProtoReflect.Descriptor instead.

func (*DnsOverQuic) GetHost

func (x *DnsOverQuic) GetHost() string

func (*DnsOverQuic) GetTargetDomain

func (x *DnsOverQuic) GetTargetDomain() string

func (*DnsOverQuic) ProtoMessage

func (*DnsOverQuic) ProtoMessage()

func (*DnsOverQuic) ProtoReflect

func (x *DnsOverQuic) ProtoReflect() protoreflect.Message

func (*DnsOverQuic) Reset

func (x *DnsOverQuic) Reset()

func (*DnsOverQuic) String

func (x *DnsOverQuic) String() string

type Http

type Http struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*Http) Descriptor deprecated

func (*Http) Descriptor() ([]byte, []int)

Deprecated: Use Http.ProtoReflect.Descriptor instead.

func (*Http) GetUrl

func (x *Http) GetUrl() string

func (*Http) ProtoMessage

func (*Http) ProtoMessage()

func (*Http) ProtoReflect

func (x *Http) ProtoReflect() protoreflect.Message

func (*Http) Reset

func (x *Http) Reset()

func (*Http) String

func (x *Http) String() string

type Protocol

type Protocol struct {

	// Types that are assignable to Protocol:
	//
	//	*Protocol_Http
	//	*Protocol_Dns
	//	*Protocol_DnsOverQuic
	Protocol isProtocol_Protocol `protobuf_oneof:"protocol"`
	// contains filtered or unexported fields
}

func (*Protocol) Descriptor deprecated

func (*Protocol) Descriptor() ([]byte, []int)

Deprecated: Use Protocol.ProtoReflect.Descriptor instead.

func (*Protocol) GetDns

func (x *Protocol) GetDns() *Dns

func (*Protocol) GetDnsOverQuic

func (x *Protocol) GetDnsOverQuic() *DnsOverQuic

func (*Protocol) GetHttp

func (x *Protocol) GetHttp() *Http

func (*Protocol) GetProtocol

func (m *Protocol) GetProtocol() isProtocol_Protocol

func (*Protocol) ProtoMessage

func (*Protocol) ProtoMessage()

func (*Protocol) ProtoReflect

func (x *Protocol) ProtoReflect() protoreflect.Message

func (*Protocol) Reset

func (x *Protocol) Reset()

func (*Protocol) String

func (x *Protocol) String() string

type Protocol_Dns

type Protocol_Dns struct {
	Dns *Dns `protobuf:"bytes,2,opt,name=dns,proto3,oneof"`
}

func (*Protocol_Dns) Latency

func (l *Protocol_Dns) Latency(p netapi.Proxy) (*durationpb.Duration, error)

type Protocol_DnsOverQuic

type Protocol_DnsOverQuic struct {
	DnsOverQuic *DnsOverQuic `protobuf:"bytes,3,opt,name=dns_over_quic,proto3,oneof"`
}

func (*Protocol_DnsOverQuic) Latency

type Protocol_Http

type Protocol_Http struct {
	Http *Http `protobuf:"bytes,1,opt,name=http,proto3,oneof"`
}

func (*Protocol_Http) Latency

func (l *Protocol_Http) Latency(p netapi.Proxy) (*durationpb.Duration, error)

type Request

type Request struct {
	Id       string    `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Hash     string    `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Protocol *Protocol `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

func (*Request) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetHash

func (x *Request) GetHash() string

func (*Request) GetId

func (x *Request) GetId() string

func (*Request) GetProtocol

func (x *Request) GetProtocol() *Protocol

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Requests

type Requests struct {
	Requests []*Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

func (*Requests) Descriptor deprecated

func (*Requests) Descriptor() ([]byte, []int)

Deprecated: Use Requests.ProtoReflect.Descriptor instead.

func (*Requests) GetRequests

func (x *Requests) GetRequests() []*Request

func (*Requests) ProtoMessage

func (*Requests) ProtoMessage()

func (*Requests) ProtoReflect

func (x *Requests) ProtoReflect() protoreflect.Message

func (*Requests) Reset

func (x *Requests) Reset()

func (*Requests) String

func (x *Requests) String() string

type Response

type Response struct {
	IdLatencyMap map[string]*durationpb.Duration `` /* 169-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetIdLatencyMap

func (x *Response) GetIdLatencyMap() map[string]*durationpb.Duration

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL