Documentation ¶
Index ¶
- Constants
- Variables
- type Event
- type EventType
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetApiKeyId() string
- func (x *Request) GetApiName() string
- func (x *Request) GetEndpointName() string
- func (x *Request) GetNamespace() string
- func (x *Request) GetPrice() string
- func (x *Request) GetProjectId() string
- func (x *Request) GetUrl() string
- func (x *Request) GetUserId() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
Constants ¶
View Source
const Topic = "requests"
Variables ¶
View Source
var ( EventType_name = map[int32]string{ 0: "EventTypeUnknown", 1: "EventTypeRequest", } EventType_value = map[string]int32{ "EventTypeUnknown": 0, "EventTypeRequest": 1, } )
Enum value maps for EventType.
View Source
var File_requests_events_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Request *Request `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` Type EventType `protobuf:"varint,3,opt,name=type,proto3,enum=requestsevents.EventType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetRequest ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type EventType ¶
type EventType int32
func (EventType) Descriptor ¶
func (EventType) Descriptor() protoreflect.EnumDescriptor
func (EventType) EnumDescriptor
deprecated
func (EventType) Number ¶
func (x EventType) Number() protoreflect.EnumNumber
func (EventType) Type ¶
func (EventType) Type() protoreflect.EnumType
type Request ¶
type Request struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // This is actually the project ID Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` ApiKeyId string `protobuf:"bytes,3,opt,name=api_key_id,json=apiKeyId,proto3" json:"api_key_id,omitempty"` Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` ApiName string `protobuf:"bytes,5,opt,name=api_name,json=apiName,proto3" json:"api_name,omitempty"` EndpointName string `protobuf:"bytes,6,opt,name=endpoint_name,json=endpointName,proto3" json:"endpoint_name,omitempty"` Price string `protobuf:"bytes,7,opt,name=price,proto3" json:"price,omitempty"` // how much this request has cost. "free" is a free endpoint. "0" is a paid endpoint that is using free quota ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetApiKeyId ¶
func (*Request) GetApiName ¶
func (*Request) GetEndpointName ¶
func (*Request) GetNamespace ¶
func (*Request) GetProjectId ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.