task

package
v0.85.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	// The canonical protobuf message type name; used for validating the type of the payload.
	//
	// For example: internal.task.v1.Message.
	TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
	// The protobuf message bytes.
	//
	// Note: we allow 0 byte length for messages with only default field values.
	RawValue             []byte   `protobuf:"bytes,2,opt,name=raw_value,json=rawValue,proto3" json:"raw_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Message is the task message payload.

func (*Message) Descriptor

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

func (*Message) GetRawValue

func (m *Message) GetRawValue() []byte

func (*Message) GetTypeName

func (m *Message) GetTypeName() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) Validate

func (m *Message) Validate() error

Validate checks the field values on Message with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) XXX_Unmarshal(b []byte) error

type MessageValidationError

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

MessageValidationError is the validation error returned by Message.Validate if the designated constraints aren't met.

func (MessageValidationError) Cause

func (e MessageValidationError) Cause() error

Cause function returns cause value.

func (MessageValidationError) Error

func (e MessageValidationError) Error() string

Error satisfies the builtin error interface

func (MessageValidationError) ErrorName

func (e MessageValidationError) ErrorName() string

ErrorName returns error name.

func (MessageValidationError) Field

func (e MessageValidationError) Field() string

Field function returns field value.

func (MessageValidationError) Key

func (e MessageValidationError) Key() bool

Key function returns key value.

func (MessageValidationError) Reason

func (e MessageValidationError) Reason() string

Reason function returns reason value.

type Wrapper

type Wrapper struct {
	Message              *Message             `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	SubmissionTime       *timestamp.Timestamp `protobuf:"bytes,2,opt,name=submission_time,json=submissionTime,proto3" json:"submission_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Wrapper is a wrapper for task queue payloads.

func (*Wrapper) Descriptor

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

func (*Wrapper) GetMessage

func (m *Wrapper) GetMessage() *Message

func (*Wrapper) GetSubmissionTime

func (m *Wrapper) GetSubmissionTime() *timestamp.Timestamp

func (*Wrapper) ProtoMessage

func (*Wrapper) ProtoMessage()

func (*Wrapper) Reset

func (m *Wrapper) Reset()

func (*Wrapper) String

func (m *Wrapper) String() string

func (*Wrapper) Validate

func (m *Wrapper) Validate() error

Validate checks the field values on Wrapper with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Wrapper) XXX_DiscardUnknown

func (m *Wrapper) XXX_DiscardUnknown()

func (*Wrapper) XXX_Marshal

func (m *Wrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Wrapper) XXX_Merge

func (m *Wrapper) XXX_Merge(src proto.Message)

func (*Wrapper) XXX_Size

func (m *Wrapper) XXX_Size() int

func (*Wrapper) XXX_Unmarshal

func (m *Wrapper) XXX_Unmarshal(b []byte) error

type WrapperValidationError

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

WrapperValidationError is the validation error returned by Wrapper.Validate if the designated constraints aren't met.

func (WrapperValidationError) Cause

func (e WrapperValidationError) Cause() error

Cause function returns cause value.

func (WrapperValidationError) Error

func (e WrapperValidationError) Error() string

Error satisfies the builtin error interface

func (WrapperValidationError) ErrorName

func (e WrapperValidationError) ErrorName() string

ErrorName returns error name.

func (WrapperValidationError) Field

func (e WrapperValidationError) Field() string

Field function returns field value.

func (WrapperValidationError) Key

func (e WrapperValidationError) Key() bool

Key function returns key value.

func (WrapperValidationError) Reason

func (e WrapperValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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