Documentation
¶
Index ¶
- func FromProto[T ~string, P ProtoEnum](p P) (T, error)
- func FromProtoPtr[T ~string, P ProtoEnum](p *P) (*T, error)
- func Narrow[T interface{ ... }, S ~string](s S) (T, bool)
- func ToProto[P ProtoEnum, T ~string](v T) (P, error)
- func ToProtoPtr[P ProtoEnum, T ~string](v *T) (*P, error)
- type LimitResource
- type ProtoEnum
- type TenantMajorEngineVersion
- type TenantMemberRole
- type V1ConcurrencyStrategy
- type V1DurableEventLogKind
- type V1EventTypeOlap
- type V1IncomingWebhookAuthType
- type V1IncomingWebhookHmacAlgorithm
- type V1IncomingWebhookSourceName
- type V1ReadableStatusOlap
- type V1RunKind
- type V1ServerlessEndpointEventKind
- type V1ServerlessEndpointKind
- type V1TaskStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromProto ¶
FromProto converts a proto enum to the string enum with the same value name, rejecting names T's Valid method (if any) refuses.
func FromProtoPtr ¶
FromProtoPtr is FromProto for optional proto fields; nil maps to nil.
func Narrow ¶
Narrow converts a value to an enum with the same value names, reporting false when T's Valid method rejects it.
func ToProtoPtr ¶
ToProtoPtr is ToProto for optional fields; nil maps to nil.
Types ¶
type LimitResource ¶
type LimitResource string
const ( LimitResourceTASKRUN LimitResource = "TASK_RUN" LimitResourceEVENT LimitResource = "EVENT" LimitResourceWORKER LimitResource = "WORKER" LimitResourceWORKERSLOT LimitResource = "WORKER_SLOT" LimitResourceCRON LimitResource = "CRON" LimitResourceSCHEDULE LimitResource = "SCHEDULE" LimitResourceINCOMINGWEBHOOK LimitResource = "INCOMING_WEBHOOK" LimitResourceSTREAMTOPIC LimitResource = "STREAM_TOPIC" LimitResourceSTREAMMESSAGE LimitResource = "STREAM_MESSAGE" LimitResourceSTREAMRETENTION LimitResource = "STREAM_RETENTION" )
func AllLimitResourceValues ¶
func AllLimitResourceValues() []LimitResource
func (*LimitResource) Scan ¶
func (e *LimitResource) Scan(src interface{}) error
func (LimitResource) Valid ¶
func (e LimitResource) Valid() bool
type ProtoEnum ¶
type ProtoEnum interface {
~int32
protoreflect.Enum
}
ProtoEnum is any protoc-gen-go enum type.
type TenantMajorEngineVersion ¶
type TenantMajorEngineVersion string
const ( TenantMajorEngineVersionV0 TenantMajorEngineVersion = "V0" TenantMajorEngineVersionV1 TenantMajorEngineVersion = "V1" )
func AllTenantMajorEngineVersionValues ¶
func AllTenantMajorEngineVersionValues() []TenantMajorEngineVersion
func (*TenantMajorEngineVersion) Scan ¶
func (e *TenantMajorEngineVersion) Scan(src interface{}) error
func (TenantMajorEngineVersion) Valid ¶
func (e TenantMajorEngineVersion) Valid() bool
type TenantMemberRole ¶
type TenantMemberRole string
const ( TenantMemberRoleOWNER TenantMemberRole = "OWNER" TenantMemberRoleADMIN TenantMemberRole = "ADMIN" TenantMemberRoleMEMBER TenantMemberRole = "MEMBER" TenantMemberRoleVIEWER TenantMemberRole = "VIEWER" )
func AllTenantMemberRoleValues ¶
func AllTenantMemberRoleValues() []TenantMemberRole
func (*TenantMemberRole) Scan ¶
func (e *TenantMemberRole) Scan(src interface{}) error
func (TenantMemberRole) Valid ¶
func (e TenantMemberRole) Valid() bool
type V1ConcurrencyStrategy ¶
type V1ConcurrencyStrategy string
const ( V1ConcurrencyStrategyNONE V1ConcurrencyStrategy = "NONE" V1ConcurrencyStrategyGROUPROUNDROBIN V1ConcurrencyStrategy = "GROUP_ROUND_ROBIN" V1ConcurrencyStrategyCANCELINPROGRESS V1ConcurrencyStrategy = "CANCEL_IN_PROGRESS" V1ConcurrencyStrategyCANCELNEWEST V1ConcurrencyStrategy = "CANCEL_NEWEST" V1ConcurrencyStrategyCANCELQUEUEDEXCEPTNEWEST V1ConcurrencyStrategy = "CANCEL_QUEUED_EXCEPT_NEWEST" V1ConcurrencyStrategyCANCELQUEUEDEXCEPTOLDEST V1ConcurrencyStrategy = "CANCEL_QUEUED_EXCEPT_OLDEST" )
func AllV1ConcurrencyStrategyValues ¶
func AllV1ConcurrencyStrategyValues() []V1ConcurrencyStrategy
func (*V1ConcurrencyStrategy) Scan ¶
func (e *V1ConcurrencyStrategy) Scan(src interface{}) error
func (V1ConcurrencyStrategy) Valid ¶
func (e V1ConcurrencyStrategy) Valid() bool
type V1DurableEventLogKind ¶
type V1DurableEventLogKind string
const ( V1DurableEventLogKindRUN V1DurableEventLogKind = "RUN" V1DurableEventLogKindWAITFOR V1DurableEventLogKind = "WAIT_FOR" V1DurableEventLogKindMEMO V1DurableEventLogKind = "MEMO" )
func AllV1DurableEventLogKindValues ¶
func AllV1DurableEventLogKindValues() []V1DurableEventLogKind
func (*V1DurableEventLogKind) Scan ¶
func (e *V1DurableEventLogKind) Scan(src interface{}) error
func (V1DurableEventLogKind) Valid ¶
func (e V1DurableEventLogKind) Valid() bool
type V1EventTypeOlap ¶
type V1EventTypeOlap string
const ( V1EventTypeOlapRETRYING V1EventTypeOlap = "RETRYING" V1EventTypeOlapREASSIGNED V1EventTypeOlap = "REASSIGNED" V1EventTypeOlapRETRIEDBYUSER V1EventTypeOlap = "RETRIED_BY_USER" V1EventTypeOlapCREATED V1EventTypeOlap = "CREATED" V1EventTypeOlapQUEUED V1EventTypeOlap = "QUEUED" V1EventTypeOlapREQUEUEDNOWORKER V1EventTypeOlap = "REQUEUED_NO_WORKER" V1EventTypeOlapREQUEUEDRATELIMIT V1EventTypeOlap = "REQUEUED_RATE_LIMIT" V1EventTypeOlapASSIGNED V1EventTypeOlap = "ASSIGNED" V1EventTypeOlapACKNOWLEDGED V1EventTypeOlap = "ACKNOWLEDGED" V1EventTypeOlapSENTTOWORKER V1EventTypeOlap = "SENT_TO_WORKER" V1EventTypeOlapSLOTRELEASED V1EventTypeOlap = "SLOT_RELEASED" V1EventTypeOlapSTARTED V1EventTypeOlap = "STARTED" V1EventTypeOlapTIMEOUTREFRESHED V1EventTypeOlap = "TIMEOUT_REFRESHED" V1EventTypeOlapSCHEDULINGTIMEDOUT V1EventTypeOlap = "SCHEDULING_TIMED_OUT" V1EventTypeOlapFINISHED V1EventTypeOlap = "FINISHED" V1EventTypeOlapFAILED V1EventTypeOlap = "FAILED" V1EventTypeOlapCANCELLED V1EventTypeOlap = "CANCELLED" V1EventTypeOlapTIMEDOUT V1EventTypeOlap = "TIMED_OUT" V1EventTypeOlapRATELIMITERROR V1EventTypeOlap = "RATE_LIMIT_ERROR" V1EventTypeOlapSKIPPED V1EventTypeOlap = "SKIPPED" V1EventTypeOlapCOULDNOTSENDTOWORKER V1EventTypeOlap = "COULD_NOT_SEND_TO_WORKER" V1EventTypeOlapDURABLEEVICTED V1EventTypeOlap = "DURABLE_EVICTED" V1EventTypeOlapDURABLERESTORING V1EventTypeOlap = "DURABLE_RESTORING" V1EventTypeOlapBATCHBUFFERED V1EventTypeOlap = "BATCH_BUFFERED" V1EventTypeOlapWAITINGFORBATCH V1EventTypeOlap = "WAITING_FOR_BATCH" V1EventTypeOlapBATCHFLUSHED V1EventTypeOlap = "BATCH_FLUSHED" )
func AllV1EventTypeOlapValues ¶
func AllV1EventTypeOlapValues() []V1EventTypeOlap
func (*V1EventTypeOlap) Scan ¶
func (e *V1EventTypeOlap) Scan(src interface{}) error
func (V1EventTypeOlap) Valid ¶
func (e V1EventTypeOlap) Valid() bool
type V1IncomingWebhookAuthType ¶
type V1IncomingWebhookAuthType string
const ( V1IncomingWebhookAuthTypeBASIC V1IncomingWebhookAuthType = "BASIC" V1IncomingWebhookAuthTypeAPIKEY V1IncomingWebhookAuthType = "API_KEY" V1IncomingWebhookAuthTypeHMAC V1IncomingWebhookAuthType = "HMAC" )
func AllV1IncomingWebhookAuthTypeValues ¶
func AllV1IncomingWebhookAuthTypeValues() []V1IncomingWebhookAuthType
func (*V1IncomingWebhookAuthType) Scan ¶
func (e *V1IncomingWebhookAuthType) Scan(src interface{}) error
func (V1IncomingWebhookAuthType) Valid ¶
func (e V1IncomingWebhookAuthType) Valid() bool
type V1IncomingWebhookHmacAlgorithm ¶
type V1IncomingWebhookHmacAlgorithm string
const ( V1IncomingWebhookHmacAlgorithmSHA1 V1IncomingWebhookHmacAlgorithm = "SHA1" V1IncomingWebhookHmacAlgorithmSHA256 V1IncomingWebhookHmacAlgorithm = "SHA256" V1IncomingWebhookHmacAlgorithmSHA512 V1IncomingWebhookHmacAlgorithm = "SHA512" V1IncomingWebhookHmacAlgorithmMD5 V1IncomingWebhookHmacAlgorithm = "MD5" )
func AllV1IncomingWebhookHmacAlgorithmValues ¶
func AllV1IncomingWebhookHmacAlgorithmValues() []V1IncomingWebhookHmacAlgorithm
func (*V1IncomingWebhookHmacAlgorithm) Scan ¶
func (e *V1IncomingWebhookHmacAlgorithm) Scan(src interface{}) error
func (V1IncomingWebhookHmacAlgorithm) Valid ¶
func (e V1IncomingWebhookHmacAlgorithm) Valid() bool
type V1IncomingWebhookSourceName ¶
type V1IncomingWebhookSourceName string
const ( V1IncomingWebhookSourceNameGENERIC V1IncomingWebhookSourceName = "GENERIC" V1IncomingWebhookSourceNameGITHUB V1IncomingWebhookSourceName = "GITHUB" V1IncomingWebhookSourceNameSTRIPE V1IncomingWebhookSourceName = "STRIPE" V1IncomingWebhookSourceNameSLACK V1IncomingWebhookSourceName = "SLACK" V1IncomingWebhookSourceNameLINEAR V1IncomingWebhookSourceName = "LINEAR" V1IncomingWebhookSourceNameSVIX V1IncomingWebhookSourceName = "SVIX" )
func AllV1IncomingWebhookSourceNameValues ¶
func AllV1IncomingWebhookSourceNameValues() []V1IncomingWebhookSourceName
func (*V1IncomingWebhookSourceName) Scan ¶
func (e *V1IncomingWebhookSourceName) Scan(src interface{}) error
func (V1IncomingWebhookSourceName) Valid ¶
func (e V1IncomingWebhookSourceName) Valid() bool
type V1ReadableStatusOlap ¶
type V1ReadableStatusOlap string
const ( V1ReadableStatusOlapQUEUED V1ReadableStatusOlap = "QUEUED" V1ReadableStatusOlapRUNNING V1ReadableStatusOlap = "RUNNING" V1ReadableStatusOlapCANCELLED V1ReadableStatusOlap = "CANCELLED" V1ReadableStatusOlapFAILED V1ReadableStatusOlap = "FAILED" V1ReadableStatusOlapCOMPLETED V1ReadableStatusOlap = "COMPLETED" V1ReadableStatusOlapEVICTED V1ReadableStatusOlap = "EVICTED" )
func AllV1ReadableStatusOlapValues ¶
func AllV1ReadableStatusOlapValues() []V1ReadableStatusOlap
func (*V1ReadableStatusOlap) Scan ¶
func (e *V1ReadableStatusOlap) Scan(src interface{}) error
func (V1ReadableStatusOlap) Valid ¶
func (e V1ReadableStatusOlap) Valid() bool
type V1RunKind ¶
type V1RunKind string
func AllV1RunKindValues ¶
func AllV1RunKindValues() []V1RunKind
type V1ServerlessEndpointEventKind ¶
type V1ServerlessEndpointEventKind string
const ( V1ServerlessEndpointEventKindHEALTHCHECKFAILED V1ServerlessEndpointEventKind = "HEALTHCHECK_FAILED" V1ServerlessEndpointEventKindUNHEALTHY V1ServerlessEndpointEventKind = "UNHEALTHY" V1ServerlessEndpointEventKindHEALTHY V1ServerlessEndpointEventKind = "HEALTHY" V1ServerlessEndpointEventKindCATALOGREGISTERED V1ServerlessEndpointEventKind = "CATALOG_REGISTERED" V1ServerlessEndpointEventKindCATALOGREJECTED V1ServerlessEndpointEventKind = "CATALOG_REJECTED" V1ServerlessEndpointEventKindDELIVERYFAILED V1ServerlessEndpointEventKind = "DELIVERY_FAILED" )
func AllV1ServerlessEndpointEventKindValues ¶
func AllV1ServerlessEndpointEventKindValues() []V1ServerlessEndpointEventKind
func (*V1ServerlessEndpointEventKind) Scan ¶
func (e *V1ServerlessEndpointEventKind) Scan(src interface{}) error
func (V1ServerlessEndpointEventKind) Valid ¶
func (e V1ServerlessEndpointEventKind) Valid() bool
type V1ServerlessEndpointKind ¶
type V1ServerlessEndpointKind string
const ( V1ServerlessEndpointKindGENERICHTTP V1ServerlessEndpointKind = "GENERIC_HTTP" V1ServerlessEndpointKindCLOUDFLAREWORKERS V1ServerlessEndpointKind = "CLOUDFLARE_WORKERS" V1ServerlessEndpointKindVERCEL V1ServerlessEndpointKind = "VERCEL" )
func AllV1ServerlessEndpointKindValues ¶
func AllV1ServerlessEndpointKindValues() []V1ServerlessEndpointKind
func (*V1ServerlessEndpointKind) Scan ¶
func (e *V1ServerlessEndpointKind) Scan(src interface{}) error
func (V1ServerlessEndpointKind) Valid ¶
func (e V1ServerlessEndpointKind) Valid() bool
type V1TaskStatus ¶
type V1TaskStatus string
V1TaskStatus is the subset of V1ReadableStatusOlap exposed outside the database; convert with Narrow.
const ( V1TaskStatusQUEUED V1TaskStatus = "QUEUED" V1TaskStatusRUNNING V1TaskStatus = "RUNNING" V1TaskStatusCANCELLED V1TaskStatus = "CANCELLED" V1TaskStatusFAILED V1TaskStatus = "FAILED" V1TaskStatusCOMPLETED V1TaskStatus = "COMPLETED" )
func AllV1TaskStatusValues ¶
func AllV1TaskStatusValues() []V1TaskStatus
func (V1TaskStatus) Valid ¶
func (e V1TaskStatus) Valid() bool
Click to show internal directories.
Click to hide internal directories.