requests

package
v0.0.0-...-fb1a1ec Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetRequest

func (x *Event) GetRequest() *Request

func (*Event) GetType

func (x *Event) GetType() EventType

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type EventType

type EventType int32
const (
	EventType_EventTypeUnknown EventType = 0
	EventType_EventTypeRequest EventType = 1
)

func (EventType) Descriptor

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated

func (EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String

func (x EventType) String() string

func (EventType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetApiKeyId

func (x *Request) GetApiKeyId() string

func (*Request) GetApiName

func (x *Request) GetApiName() string

func (*Request) GetEndpointName

func (x *Request) GetEndpointName() string

func (*Request) GetNamespace

func (x *Request) GetNamespace() string

func (*Request) GetPrice

func (x *Request) GetPrice() string

func (*Request) GetProjectId

func (x *Request) GetProjectId() string

func (*Request) GetUrl

func (x *Request) GetUrl() string

func (*Request) GetUserId

func (x *Request) GetUserId() string

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

Jump to

Keyboard shortcuts

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