kmi

package
v0.0.0-...-e47837b Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_kentik_kmi_v202212_kmi_proto protoreflect.FileDescriptor
View Source
var KmiService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kentik.kmi.v202212.KmiService",
	HandlerType: (*KmiServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListMarkets",
			Handler:    _KmiService_ListMarkets_Handler,
		},
		{
			MethodName: "GetRankings",
			Handler:    _KmiService_GetRankings_Handler,
		},
		{
			MethodName: "GetASNDetails",
			Handler:    _KmiService_GetASNDetails_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kentik/kmi/v202212/kmi.proto",
}

KmiService_ServiceDesc is the grpc.ServiceDesc for KmiService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterKmiServiceServer

func RegisterKmiServiceServer(s grpc.ServiceRegistrar, srv KmiServiceServer)

Types

type ASNDetails

type ASNDetails struct {
	Asn         *uint32             `protobuf:"varint,1,opt,name=asn,proto3,oneof" json:"asn,omitempty"`
	Name        string              `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	CountryName string              `protobuf:"bytes,3,opt,name=country_name,json=countryName,proto3" json:"country_name,omitempty"`
	Customers   []*CustomerProvider `protobuf:"bytes,4,rep,name=customers,proto3" json:"customers,omitempty"`
	Providers   []*CustomerProvider `protobuf:"bytes,5,rep,name=providers,proto3" json:"providers,omitempty"`
	Peers       []*Peer             `protobuf:"bytes,6,rep,name=peers,proto3" json:"peers,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*ASNDetails) Descriptor deprecated

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

Deprecated: Use ASNDetails.ProtoReflect.Descriptor instead.

func (*ASNDetails) GetAsn

func (x *ASNDetails) GetAsn() uint32

func (*ASNDetails) GetCountryName

func (x *ASNDetails) GetCountryName() string

func (*ASNDetails) GetCustomers

func (x *ASNDetails) GetCustomers() []*CustomerProvider

func (*ASNDetails) GetName

func (x *ASNDetails) GetName() string

func (*ASNDetails) GetPeers

func (x *ASNDetails) GetPeers() []*Peer

func (*ASNDetails) GetProviders

func (x *ASNDetails) GetProviders() []*CustomerProvider

func (*ASNDetails) ProtoMessage

func (*ASNDetails) ProtoMessage()

func (*ASNDetails) ProtoReflect

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

func (*ASNDetails) Reset

func (x *ASNDetails) Reset()

func (*ASNDetails) String

func (x *ASNDetails) String() string

type CustomerProvider

type CustomerProvider struct {
	Asn                 *uint32 `protobuf:"varint,1,opt,name=asn,proto3,oneof" json:"asn,omitempty"`
	Name                string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Score               *uint32 `protobuf:"varint,3,opt,name=score,proto3,oneof" json:"score,omitempty"`
	SinglehomedCustomer *bool   `protobuf:"varint,4,opt,name=singlehomed_customer,json=singlehomedCustomer,proto3,oneof" json:"singlehomed_customer,omitempty"`
	MutualCustomer      *bool   `protobuf:"varint,5,opt,name=mutual_customer,json=mutualCustomer,proto3,oneof" json:"mutual_customer,omitempty"`
	MutualProvider      *bool   `protobuf:"varint,6,opt,name=mutual_provider,json=mutualProvider,proto3,oneof" json:"mutual_provider,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*CustomerProvider) Descriptor deprecated

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

Deprecated: Use CustomerProvider.ProtoReflect.Descriptor instead.

func (*CustomerProvider) GetAsn

func (x *CustomerProvider) GetAsn() uint32

func (*CustomerProvider) GetMutualCustomer

func (x *CustomerProvider) GetMutualCustomer() bool

func (*CustomerProvider) GetMutualProvider

func (x *CustomerProvider) GetMutualProvider() bool

func (*CustomerProvider) GetName

func (x *CustomerProvider) GetName() string

func (*CustomerProvider) GetScore

func (x *CustomerProvider) GetScore() uint32

func (*CustomerProvider) GetSinglehomedCustomer

func (x *CustomerProvider) GetSinglehomedCustomer() bool

func (*CustomerProvider) ProtoMessage

func (*CustomerProvider) ProtoMessage()

func (*CustomerProvider) ProtoReflect

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

func (*CustomerProvider) Reset

func (x *CustomerProvider) Reset()

func (*CustomerProvider) String

func (x *CustomerProvider) String() string

type GetASNDetailsRequest

type GetASNDetailsRequest struct {
	MarketId            string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	Asn                 string `protobuf:"bytes,2,opt,name=asn,proto3" json:"asn,omitempty"`
	Ip                  string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	Type                string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	MutualProvider      string `protobuf:"bytes,5,opt,name=mutual_provider,json=mutualProvider,proto3" json:"mutual_provider,omitempty"`
	MutualCustomer      string `protobuf:"bytes,6,opt,name=mutual_customer,json=mutualCustomer,proto3" json:"mutual_customer,omitempty"`
	SinglehomedCustomer string `protobuf:"bytes,7,opt,name=singlehomed_customer,json=singlehomedCustomer,proto3" json:"singlehomed_customer,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*GetASNDetailsRequest) Descriptor deprecated

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

Deprecated: Use GetASNDetailsRequest.ProtoReflect.Descriptor instead.

func (*GetASNDetailsRequest) GetAsn

func (x *GetASNDetailsRequest) GetAsn() string

func (*GetASNDetailsRequest) GetIp

func (x *GetASNDetailsRequest) GetIp() string

func (*GetASNDetailsRequest) GetMarketId

func (x *GetASNDetailsRequest) GetMarketId() string

func (*GetASNDetailsRequest) GetMutualCustomer

func (x *GetASNDetailsRequest) GetMutualCustomer() string

func (*GetASNDetailsRequest) GetMutualProvider

func (x *GetASNDetailsRequest) GetMutualProvider() string

func (*GetASNDetailsRequest) GetSinglehomedCustomer

func (x *GetASNDetailsRequest) GetSinglehomedCustomer() string

func (*GetASNDetailsRequest) GetType

func (x *GetASNDetailsRequest) GetType() string

func (*GetASNDetailsRequest) ProtoMessage

func (*GetASNDetailsRequest) ProtoMessage()

func (*GetASNDetailsRequest) ProtoReflect

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

func (*GetASNDetailsRequest) Reset

func (x *GetASNDetailsRequest) Reset()

func (*GetASNDetailsRequest) String

func (x *GetASNDetailsRequest) String() string

type GetASNDetailsResponse

type GetASNDetailsResponse struct {
	AsnDetails *ASNDetails `protobuf:"bytes,1,opt,name=asn_details,json=asnDetails,proto3" json:"asn_details,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*GetASNDetailsResponse) Descriptor deprecated

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

Deprecated: Use GetASNDetailsResponse.ProtoReflect.Descriptor instead.

func (*GetASNDetailsResponse) GetAsnDetails

func (x *GetASNDetailsResponse) GetAsnDetails() *ASNDetails

func (*GetASNDetailsResponse) ProtoMessage

func (*GetASNDetailsResponse) ProtoMessage()

func (*GetASNDetailsResponse) ProtoReflect

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

func (*GetASNDetailsResponse) Reset

func (x *GetASNDetailsResponse) Reset()

func (*GetASNDetailsResponse) String

func (x *GetASNDetailsResponse) String() string

type GetRankingsRequest

type GetRankingsRequest struct {
	MarketId string  `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	RankType string  `protobuf:"bytes,2,opt,name=rank_type,json=rankType,proto3" json:"rank_type,omitempty"`
	Ip       string  `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	Limit    *uint32 `protobuf:"varint,4,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*GetRankingsRequest) Descriptor deprecated

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

Deprecated: Use GetRankingsRequest.ProtoReflect.Descriptor instead.

func (*GetRankingsRequest) GetIp

func (x *GetRankingsRequest) GetIp() string

func (*GetRankingsRequest) GetLimit

func (x *GetRankingsRequest) GetLimit() uint32

func (*GetRankingsRequest) GetMarketId

func (x *GetRankingsRequest) GetMarketId() string

func (*GetRankingsRequest) GetRankType

func (x *GetRankingsRequest) GetRankType() string

func (*GetRankingsRequest) ProtoMessage

func (*GetRankingsRequest) ProtoMessage()

func (*GetRankingsRequest) ProtoReflect

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

func (*GetRankingsRequest) Reset

func (x *GetRankingsRequest) Reset()

func (*GetRankingsRequest) String

func (x *GetRankingsRequest) String() string

type GetRankingsResponse

type GetRankingsResponse struct {
	Rankings     []*Ranking `protobuf:"bytes,1,rep,name=rankings,proto3" json:"rankings,omitempty"`
	InvalidCount uint32     `protobuf:"varint,2,opt,name=invalid_count,json=invalidCount,proto3" json:"invalid_count,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*GetRankingsResponse) Descriptor deprecated

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

Deprecated: Use GetRankingsResponse.ProtoReflect.Descriptor instead.

func (*GetRankingsResponse) GetInvalidCount

func (x *GetRankingsResponse) GetInvalidCount() uint32

func (*GetRankingsResponse) GetRankings

func (x *GetRankingsResponse) GetRankings() []*Ranking

func (*GetRankingsResponse) ProtoMessage

func (*GetRankingsResponse) ProtoMessage()

func (*GetRankingsResponse) ProtoReflect

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

func (*GetRankingsResponse) Reset

func (x *GetRankingsResponse) Reset()

func (*GetRankingsResponse) String

func (x *GetRankingsResponse) String() string

type KmiServiceClient

type KmiServiceClient interface {
	ListMarkets(ctx context.Context, in *ListMarketsRequest, opts ...grpc.CallOption) (*ListMarketsResponse, error)
	GetRankings(ctx context.Context, in *GetRankingsRequest, opts ...grpc.CallOption) (*GetRankingsResponse, error)
	GetASNDetails(ctx context.Context, in *GetASNDetailsRequest, opts ...grpc.CallOption) (*GetASNDetailsResponse, error)
}

KmiServiceClient is the client API for KmiService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewKmiServiceClient

func NewKmiServiceClient(cc grpc.ClientConnInterface) KmiServiceClient

type KmiServiceServer

KmiServiceServer is the server API for KmiService service. All implementations should embed UnimplementedKmiServiceServer for forward compatibility

type ListMarketsRequest

type ListMarketsRequest struct {
	// contains filtered or unexported fields
}

{{.Name}}

func (*ListMarketsRequest) Descriptor deprecated

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

Deprecated: Use ListMarketsRequest.ProtoReflect.Descriptor instead.

func (*ListMarketsRequest) ProtoMessage

func (*ListMarketsRequest) ProtoMessage()

func (*ListMarketsRequest) ProtoReflect

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

func (*ListMarketsRequest) Reset

func (x *ListMarketsRequest) Reset()

func (*ListMarketsRequest) String

func (x *ListMarketsRequest) String() string

type ListMarketsResponse

type ListMarketsResponse struct {
	Markets []*Market `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*ListMarketsResponse) Descriptor deprecated

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

Deprecated: Use ListMarketsResponse.ProtoReflect.Descriptor instead.

func (*ListMarketsResponse) GetMarkets

func (x *ListMarketsResponse) GetMarkets() []*Market

func (*ListMarketsResponse) ProtoMessage

func (*ListMarketsResponse) ProtoMessage()

func (*ListMarketsResponse) ProtoReflect

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

func (*ListMarketsResponse) Reset

func (x *ListMarketsResponse) Reset()

func (*ListMarketsResponse) String

func (x *ListMarketsResponse) String() string

type Market

type Market struct {
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*Market) Descriptor deprecated

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

Deprecated: Use Market.ProtoReflect.Descriptor instead.

func (*Market) GetMarketId

func (x *Market) GetMarketId() string

func (*Market) GetName

func (x *Market) GetName() string

func (*Market) ProtoMessage

func (*Market) ProtoMessage()

func (*Market) ProtoReflect

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

func (*Market) Reset

func (x *Market) Reset()

func (*Market) String

func (x *Market) String() string

type Peer

type Peer struct {
	Asn      *uint32 `protobuf:"varint,1,opt,name=asn,proto3,oneof" json:"asn,omitempty"`
	Name     string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	PfxCount *uint32 `protobuf:"varint,3,opt,name=pfx_count,json=pfxCount,proto3,oneof" json:"pfx_count,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*Peer) Descriptor deprecated

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

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) GetAsn

func (x *Peer) GetAsn() uint32

func (*Peer) GetName

func (x *Peer) GetName() string

func (*Peer) GetPfxCount

func (x *Peer) GetPfxCount() uint32

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) ProtoReflect

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

func (*Peer) Reset

func (x *Peer) Reset()

func (*Peer) String

func (x *Peer) String() string

type Ranking

type Ranking struct {
	Asn         *uint32 `protobuf:"varint,1,opt,name=asn,proto3,oneof" json:"asn,omitempty"`
	Name        string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Rank        *uint32 `protobuf:"varint,3,opt,name=rank,proto3,oneof" json:"rank,omitempty"`
	RankChange  *uint32 `protobuf:"varint,4,opt,name=rank_change,json=rankChange,proto3,oneof" json:"rank_change,omitempty"`
	Score       *uint32 `protobuf:"varint,5,opt,name=score,proto3,oneof" json:"score,omitempty"`
	ScoreChange *uint32 `protobuf:"varint,6,opt,name=score_change,json=scoreChange,proto3,oneof" json:"score_change,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*Ranking) Descriptor deprecated

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

Deprecated: Use Ranking.ProtoReflect.Descriptor instead.

func (*Ranking) GetAsn

func (x *Ranking) GetAsn() uint32

func (*Ranking) GetName

func (x *Ranking) GetName() string

func (*Ranking) GetRank

func (x *Ranking) GetRank() uint32

func (*Ranking) GetRankChange

func (x *Ranking) GetRankChange() uint32

func (*Ranking) GetScore

func (x *Ranking) GetScore() uint32

func (*Ranking) GetScoreChange

func (x *Ranking) GetScoreChange() uint32

func (*Ranking) ProtoMessage

func (*Ranking) ProtoMessage()

func (*Ranking) ProtoReflect

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

func (*Ranking) Reset

func (x *Ranking) Reset()

func (*Ranking) String

func (x *Ranking) String() string

type UnimplementedKmiServiceServer

type UnimplementedKmiServiceServer struct {
}

UnimplementedKmiServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedKmiServiceServer) GetASNDetails

func (UnimplementedKmiServiceServer) GetRankings

func (UnimplementedKmiServiceServer) ListMarkets

type UnsafeKmiServiceServer

type UnsafeKmiServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeKmiServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KmiServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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