pb

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_pb_federation_proto protoreflect.FileDescriptor
View Source
var File_internal_pb_revision_proto protoreflect.FileDescriptor

Functions

func RegisterFederationServer

func RegisterFederationServer(s *grpc.Server, srv FederationServer)

Types

type ContactTracingInfo

type ContactTracingInfo struct {

	// Transmission risk is an integer with valid values from 1-8.
	TransmissionRisk int32          `protobuf:"varint,1,opt,name=transmissionRisk,proto3" json:"transmissionRisk,omitempty"` // required
	ExposureKeys     []*ExposureKey `protobuf:"bytes,2,rep,name=exposureKeys,proto3" json:"exposureKeys,omitempty"`
	// contains filtered or unexported fields
}

func (*ContactTracingInfo) Descriptor deprecated

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

Deprecated: Use ContactTracingInfo.ProtoReflect.Descriptor instead.

func (*ContactTracingInfo) GetExposureKeys

func (x *ContactTracingInfo) GetExposureKeys() []*ExposureKey

func (*ContactTracingInfo) GetTransmissionRisk

func (x *ContactTracingInfo) GetTransmissionRisk() int32

func (*ContactTracingInfo) ProtoMessage

func (*ContactTracingInfo) ProtoMessage()

func (*ContactTracingInfo) ProtoReflect

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

func (*ContactTracingInfo) Reset

func (x *ContactTracingInfo) Reset()

func (*ContactTracingInfo) String

func (x *ContactTracingInfo) String() string

type ContactTracingResponse

type ContactTracingResponse struct {
	ContactTracingInfo []*ContactTracingInfo `protobuf:"bytes,1,rep,name=contactTracingInfo,proto3" json:"contactTracingInfo,omitempty"`
	RegionIdentifiers  []string              `protobuf:"bytes,2,rep,name=regionIdentifiers,proto3" json:"regionIdentifiers,omitempty"`
	// contains filtered or unexported fields
}

func (*ContactTracingResponse) Descriptor deprecated

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

Deprecated: Use ContactTracingResponse.ProtoReflect.Descriptor instead.

func (*ContactTracingResponse) GetContactTracingInfo

func (x *ContactTracingResponse) GetContactTracingInfo() []*ContactTracingInfo

func (*ContactTracingResponse) GetRegionIdentifiers

func (x *ContactTracingResponse) GetRegionIdentifiers() []string

func (*ContactTracingResponse) ProtoMessage

func (*ContactTracingResponse) ProtoMessage()

func (*ContactTracingResponse) ProtoReflect

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

func (*ContactTracingResponse) Reset

func (x *ContactTracingResponse) Reset()

func (*ContactTracingResponse) String

func (x *ContactTracingResponse) String() string

type ExposureKey

type ExposureKey struct {
	ExposureKey    []byte `protobuf:"bytes,1,opt,name=exposureKey,proto3" json:"exposureKey,omitempty"`        // required
	IntervalNumber int32  `protobuf:"varint,2,opt,name=intervalNumber,proto3" json:"intervalNumber,omitempty"` // required
	IntervalCount  int32  `protobuf:"varint,3,opt,name=intervalCount,proto3" json:"intervalCount,omitempty"`   // required
	// contains filtered or unexported fields
}

func (*ExposureKey) Descriptor deprecated

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

Deprecated: Use ExposureKey.ProtoReflect.Descriptor instead.

func (*ExposureKey) GetExposureKey

func (x *ExposureKey) GetExposureKey() []byte

func (*ExposureKey) GetIntervalCount

func (x *ExposureKey) GetIntervalCount() int32

func (*ExposureKey) GetIntervalNumber

func (x *ExposureKey) GetIntervalNumber() int32

func (*ExposureKey) ProtoMessage

func (*ExposureKey) ProtoMessage()

func (*ExposureKey) ProtoReflect

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

func (*ExposureKey) Reset

func (x *ExposureKey) Reset()

func (*ExposureKey) String

func (x *ExposureKey) String() string

type FederationClient

type FederationClient interface {
	Fetch(ctx context.Context, in *FederationFetchRequest, opts ...grpc.CallOption) (*FederationFetchResponse, error)
}

FederationClient is the client API for Federation service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewFederationClient

func NewFederationClient(cc grpc.ClientConnInterface) FederationClient

type FederationFetchRequest

type FederationFetchRequest struct {

	// fetchType is not used in the federation API and will be removed.
	//
	// Deprecated: Do not use.
	FetchType                     string   `protobuf:"bytes,1,opt,name=fetchType,proto3" json:"fetchType,omitempty"`
	RegionIdentifiers             []string `protobuf:"bytes,2,rep,name=regionIdentifiers,proto3" json:"regionIdentifiers,omitempty"`
	ExcludeRegionIdentifiers      []string `protobuf:"bytes,3,rep,name=excludeRegionIdentifiers,proto3" json:"excludeRegionIdentifiers,omitempty"`
	LastFetchResponseKeyTimestamp int64    `protobuf:"varint,4,opt,name=lastFetchResponseKeyTimestamp,proto3" json:"lastFetchResponseKeyTimestamp,omitempty"` // required
	// regionIdentifiers, excludeRegionIdentifiers, lastFetchResponseKeyTimestamp must be stable to send a fetchToken.
	NextFetchToken string `protobuf:"bytes,5,opt,name=nextFetchToken,proto3" json:"nextFetchToken,omitempty"`
	// contains filtered or unexported fields
}

func (*FederationFetchRequest) Descriptor deprecated

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

Deprecated: Use FederationFetchRequest.ProtoReflect.Descriptor instead.

func (*FederationFetchRequest) GetExcludeRegionIdentifiers

func (x *FederationFetchRequest) GetExcludeRegionIdentifiers() []string

func (*FederationFetchRequest) GetFetchType deprecated

func (x *FederationFetchRequest) GetFetchType() string

Deprecated: Do not use.

func (*FederationFetchRequest) GetLastFetchResponseKeyTimestamp

func (x *FederationFetchRequest) GetLastFetchResponseKeyTimestamp() int64

func (*FederationFetchRequest) GetNextFetchToken

func (x *FederationFetchRequest) GetNextFetchToken() string

func (*FederationFetchRequest) GetRegionIdentifiers

func (x *FederationFetchRequest) GetRegionIdentifiers() []string

func (*FederationFetchRequest) ProtoMessage

func (*FederationFetchRequest) ProtoMessage()

func (*FederationFetchRequest) ProtoReflect

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

func (*FederationFetchRequest) Reset

func (x *FederationFetchRequest) Reset()

func (*FederationFetchRequest) String

func (x *FederationFetchRequest) String() string

type FederationFetchResponse

type FederationFetchResponse struct {
	Response                  []*ContactTracingResponse `protobuf:"bytes,1,rep,name=response,proto3" json:"response,omitempty"`
	PartialResponse           bool                      `protobuf:"varint,2,opt,name=partialResponse,proto3" json:"partialResponse,omitempty"`                     // required
	NextFetchToken            string                    `protobuf:"bytes,3,opt,name=nextFetchToken,proto3" json:"nextFetchToken,omitempty"`                        // nextFetchToken will be present if partialResponse==true
	FetchResponseKeyTimestamp int64                     `protobuf:"varint,4,opt,name=fetchResponseKeyTimestamp,proto3" json:"fetchResponseKeyTimestamp,omitempty"` // required
	// contains filtered or unexported fields
}

func (*FederationFetchResponse) Descriptor deprecated

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

Deprecated: Use FederationFetchResponse.ProtoReflect.Descriptor instead.

func (*FederationFetchResponse) GetFetchResponseKeyTimestamp

func (x *FederationFetchResponse) GetFetchResponseKeyTimestamp() int64

func (*FederationFetchResponse) GetNextFetchToken

func (x *FederationFetchResponse) GetNextFetchToken() string

func (*FederationFetchResponse) GetPartialResponse

func (x *FederationFetchResponse) GetPartialResponse() bool

func (*FederationFetchResponse) GetResponse

func (x *FederationFetchResponse) GetResponse() []*ContactTracingResponse

func (*FederationFetchResponse) ProtoMessage

func (*FederationFetchResponse) ProtoMessage()

func (*FederationFetchResponse) ProtoReflect

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

func (*FederationFetchResponse) Reset

func (x *FederationFetchResponse) Reset()

func (*FederationFetchResponse) String

func (x *FederationFetchResponse) String() string

type FederationServer

type FederationServer interface {
	Fetch(context.Context, *FederationFetchRequest) (*FederationFetchResponse, error)
}

FederationServer is the server API for Federation service.

type RevisableKey

type RevisableKey struct {
	TemporaryExposureKey []byte `protobuf:"bytes,1,opt,name=temporaryExposureKey,proto3" json:"temporaryExposureKey,omitempty"`
	IntervalNumber       int32  `protobuf:"varint,2,opt,name=intervalNumber,proto3" json:"intervalNumber,omitempty"`
	IntervalCount        int32  `protobuf:"varint,3,opt,name=intervalCount,proto3" json:"intervalCount,omitempty"`
	// contains filtered or unexported fields
}

func (*RevisableKey) Descriptor deprecated

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

Deprecated: Use RevisableKey.ProtoReflect.Descriptor instead.

func (*RevisableKey) GetIntervalCount

func (x *RevisableKey) GetIntervalCount() int32

func (*RevisableKey) GetIntervalNumber

func (x *RevisableKey) GetIntervalNumber() int32

func (*RevisableKey) GetTemporaryExposureKey

func (x *RevisableKey) GetTemporaryExposureKey() []byte

func (*RevisableKey) ProtoMessage

func (*RevisableKey) ProtoMessage()

func (*RevisableKey) ProtoReflect

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

func (*RevisableKey) Reset

func (x *RevisableKey) Reset()

func (*RevisableKey) String

func (x *RevisableKey) String() string

type RevisionToken

type RevisionToken struct {
	Kid  string `protobuf:"bytes,1,opt,name=kid,proto3" json:"kid,omitempty"`
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*RevisionToken) Descriptor deprecated

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

Deprecated: Use RevisionToken.ProtoReflect.Descriptor instead.

func (*RevisionToken) GetData

func (x *RevisionToken) GetData() []byte

func (*RevisionToken) GetKid

func (x *RevisionToken) GetKid() string

func (*RevisionToken) ProtoMessage

func (*RevisionToken) ProtoMessage()

func (*RevisionToken) ProtoReflect

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

func (*RevisionToken) Reset

func (x *RevisionToken) Reset()

func (*RevisionToken) String

func (x *RevisionToken) String() string

type RevisionTokenData

type RevisionTokenData struct {
	RevisableKeys []*RevisableKey `protobuf:"bytes,1,rep,name=revisableKeys,proto3" json:"revisableKeys,omitempty"`
	// contains filtered or unexported fields
}

func (*RevisionTokenData) Descriptor deprecated

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

Deprecated: Use RevisionTokenData.ProtoReflect.Descriptor instead.

func (*RevisionTokenData) GetRevisableKeys

func (x *RevisionTokenData) GetRevisableKeys() []*RevisableKey

func (*RevisionTokenData) ProtoMessage

func (*RevisionTokenData) ProtoMessage()

func (*RevisionTokenData) ProtoReflect

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

func (*RevisionTokenData) Reset

func (x *RevisionTokenData) Reset()

func (*RevisionTokenData) String

func (x *RevisionTokenData) String() string

type UnimplementedFederationServer

type UnimplementedFederationServer struct {
}

UnimplementedFederationServer can be embedded to have forward compatible implementations.

func (*UnimplementedFederationServer) Fetch

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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