status

package
v0.0.0-...-f612cea Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type TStatus

type TStatus struct {
	StatusCode TStatusCode `thrift:"status_code,1,required" db:"status_code" json:"status_code"`
	ErrorMsgs  []string    `thrift:"error_msgs,2" db:"error_msgs" json:"error_msgs"`
}

Attributes:

  • StatusCode
  • ErrorMsgs

func NewTStatus

func NewTStatus() *TStatus

func (*TStatus) Equals

func (p *TStatus) Equals(other *TStatus) bool

func (*TStatus) GetErrorMsgs

func (p *TStatus) GetErrorMsgs() []string

func (*TStatus) GetStatusCode

func (p *TStatus) GetStatusCode() TStatusCode

func (*TStatus) LogValue

func (p *TStatus) LogValue() slog.Value

func (*TStatus) Read

func (p *TStatus) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*TStatus) ReadField1

func (p *TStatus) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*TStatus) ReadField2

func (p *TStatus) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*TStatus) String

func (p *TStatus) String() string

func (*TStatus) Validate

func (p *TStatus) Validate() error

func (*TStatus) Write

func (p *TStatus) Write(ctx context.Context, oprot thrift.TProtocol) error

type TStatusCode

type TStatusCode int64
const (
	TStatusCode_OK                    TStatusCode = 0
	TStatusCode_CANCELLED             TStatusCode = 1
	TStatusCode_ANALYSIS_ERROR        TStatusCode = 2
	TStatusCode_NOT_IMPLEMENTED_ERROR TStatusCode = 3
	TStatusCode_RUNTIME_ERROR         TStatusCode = 4
	TStatusCode_MEM_LIMIT_EXCEEDED    TStatusCode = 5
	TStatusCode_INTERNAL_ERROR        TStatusCode = 6
)

func TStatusCodeFromString

func TStatusCodeFromString(s string) (TStatusCode, error)

func TStatusCodePtr

func TStatusCodePtr(v TStatusCode) *TStatusCode

func (TStatusCode) MarshalText

func (p TStatusCode) MarshalText() ([]byte, error)

func (*TStatusCode) Scan

func (p *TStatusCode) Scan(value interface{}) error

func (TStatusCode) String

func (p TStatusCode) String() string

func (*TStatusCode) UnmarshalText

func (p *TStatusCode) UnmarshalText(text []byte) error

func (*TStatusCode) Value

func (p *TStatusCode) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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