domprinter

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FetchPrintTaskReq_LimitTaskNum_DEFAULT int64
View Source
var FetchPrintTaskReq_OffsetTaskID_DEFAULT int64

Functions

This section is empty.

Types

type BaseReq added in v0.0.2

type BaseReq struct {
	AuthToken string `thrift:"AuthToken,1,required" header:"X-DOM-TOKEN,required" json:"AuthToken,required"`
}
var FetchPrintTaskReq_BaseReq_DEFAULT *BaseReq
var SubmitPrintTaskReq_BaseReq_DEFAULT *BaseReq
var UpdatePrintTaskReq_BaseReq_DEFAULT *BaseReq

func NewBaseReq added in v0.0.2

func NewBaseReq() *BaseReq

func (*BaseReq) GetAuthToken added in v0.0.2

func (p *BaseReq) GetAuthToken() (v string)

func (*BaseReq) Read added in v0.0.2

func (p *BaseReq) Read(iprot thrift.TProtocol) (err error)

func (*BaseReq) ReadField1 added in v0.0.2

func (p *BaseReq) ReadField1(iprot thrift.TProtocol) error

func (*BaseReq) String added in v0.0.2

func (p *BaseReq) String() string

func (*BaseReq) Write added in v0.0.2

func (p *BaseReq) Write(oprot thrift.TProtocol) (err error)

type BaseResp

type BaseResp struct {
	RespCode    RespCodeEnum `thrift:"RespCode,1" form:"RespCode" json:"RespCode" query:"RespCode"`
	RespMessage string       `thrift:"RespMessage,2" form:"RespMessage" json:"RespMessage" query:"RespMessage"`
}
var FetchPrintTaskResp_BaseResp_DEFAULT *BaseResp
var SubmitPrintTaskResp_BaseResp_DEFAULT *BaseResp
var UpdatePrintTaskResp_BaseResp_DEFAULT *BaseResp

func NewBaseResp

func NewBaseResp() *BaseResp

func (*BaseResp) GetRespCode

func (p *BaseResp) GetRespCode() (v RespCodeEnum)

func (*BaseResp) GetRespMessage

func (p *BaseResp) GetRespMessage() (v string)

func (*BaseResp) Read

func (p *BaseResp) Read(iprot thrift.TProtocol) (err error)

func (*BaseResp) ReadField1

func (p *BaseResp) ReadField1(iprot thrift.TProtocol) error

func (*BaseResp) ReadField2

func (p *BaseResp) ReadField2(iprot thrift.TProtocol) error

func (*BaseResp) String

func (p *BaseResp) String() string

func (*BaseResp) Write

func (p *BaseResp) Write(oprot thrift.TProtocol) (err error)

type DOMPrinterService

type DOMPrinterService interface {
	FetchPrintTask(ctx context.Context, request *FetchPrintTaskReq) (r *FetchPrintTaskResp, err error)

	SubmitPrintTask(ctx context.Context, request *SubmitPrintTaskReq) (r *SubmitPrintTaskResp, err error)

	UpdatePrintTask(ctx context.Context, request *UpdatePrintTaskReq) (r *UpdatePrintTaskResp, err error)

	Ping(ctx context.Context, request *PingReq) (r *PingResp, err error)
}

type DOMPrinterServiceClient

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

func NewDOMPrinterServiceClient

func NewDOMPrinterServiceClient(c thrift.TClient) *DOMPrinterServiceClient

func NewDOMPrinterServiceClientProtocol

func NewDOMPrinterServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *DOMPrinterServiceClient

func (*DOMPrinterServiceClient) Client_

func (p *DOMPrinterServiceClient) Client_() thrift.TClient

func (*DOMPrinterServiceClient) FetchPrintTask

func (p *DOMPrinterServiceClient) FetchPrintTask(ctx context.Context, request *FetchPrintTaskReq) (r *FetchPrintTaskResp, err error)

func (*DOMPrinterServiceClient) Ping added in v0.0.7

func (p *DOMPrinterServiceClient) Ping(ctx context.Context, request *PingReq) (r *PingResp, err error)

func (*DOMPrinterServiceClient) SubmitPrintTask

func (p *DOMPrinterServiceClient) SubmitPrintTask(ctx context.Context, request *SubmitPrintTaskReq) (r *SubmitPrintTaskResp, err error)

func (*DOMPrinterServiceClient) UpdatePrintTask

func (p *DOMPrinterServiceClient) UpdatePrintTask(ctx context.Context, request *UpdatePrintTaskReq) (r *UpdatePrintTaskResp, err error)

type DOMPrinterServiceFetchPrintTaskArgs

type DOMPrinterServiceFetchPrintTaskArgs struct {
	Request *FetchPrintTaskReq `thrift:"request,1"`
}

func NewDOMPrinterServiceFetchPrintTaskArgs

func NewDOMPrinterServiceFetchPrintTaskArgs() *DOMPrinterServiceFetchPrintTaskArgs

func (*DOMPrinterServiceFetchPrintTaskArgs) GetRequest

func (*DOMPrinterServiceFetchPrintTaskArgs) IsSetRequest

func (p *DOMPrinterServiceFetchPrintTaskArgs) IsSetRequest() bool

func (*DOMPrinterServiceFetchPrintTaskArgs) Read

func (*DOMPrinterServiceFetchPrintTaskArgs) ReadField1

func (*DOMPrinterServiceFetchPrintTaskArgs) String

func (*DOMPrinterServiceFetchPrintTaskArgs) Write

type DOMPrinterServiceFetchPrintTaskResult

type DOMPrinterServiceFetchPrintTaskResult struct {
	Success *FetchPrintTaskResp `thrift:"success,0,optional"`
}

func NewDOMPrinterServiceFetchPrintTaskResult

func NewDOMPrinterServiceFetchPrintTaskResult() *DOMPrinterServiceFetchPrintTaskResult

func (*DOMPrinterServiceFetchPrintTaskResult) GetSuccess

func (*DOMPrinterServiceFetchPrintTaskResult) IsSetSuccess

func (p *DOMPrinterServiceFetchPrintTaskResult) IsSetSuccess() bool

func (*DOMPrinterServiceFetchPrintTaskResult) Read

func (*DOMPrinterServiceFetchPrintTaskResult) ReadField0

func (*DOMPrinterServiceFetchPrintTaskResult) String

func (*DOMPrinterServiceFetchPrintTaskResult) Write

type DOMPrinterServicePingArgs added in v0.0.7

type DOMPrinterServicePingArgs struct {
	Request *PingReq `thrift:"request,1"`
}

func NewDOMPrinterServicePingArgs added in v0.0.7

func NewDOMPrinterServicePingArgs() *DOMPrinterServicePingArgs

func (*DOMPrinterServicePingArgs) GetRequest added in v0.0.7

func (p *DOMPrinterServicePingArgs) GetRequest() (v *PingReq)

func (*DOMPrinterServicePingArgs) IsSetRequest added in v0.0.7

func (p *DOMPrinterServicePingArgs) IsSetRequest() bool

func (*DOMPrinterServicePingArgs) Read added in v0.0.7

func (p *DOMPrinterServicePingArgs) Read(iprot thrift.TProtocol) (err error)

func (*DOMPrinterServicePingArgs) ReadField1 added in v0.0.7

func (p *DOMPrinterServicePingArgs) ReadField1(iprot thrift.TProtocol) error

func (*DOMPrinterServicePingArgs) String added in v0.0.7

func (p *DOMPrinterServicePingArgs) String() string

func (*DOMPrinterServicePingArgs) Write added in v0.0.7

func (p *DOMPrinterServicePingArgs) Write(oprot thrift.TProtocol) (err error)

type DOMPrinterServicePingResult added in v0.0.7

type DOMPrinterServicePingResult struct {
	Success *PingResp `thrift:"success,0,optional"`
}

func NewDOMPrinterServicePingResult added in v0.0.7

func NewDOMPrinterServicePingResult() *DOMPrinterServicePingResult

func (*DOMPrinterServicePingResult) GetSuccess added in v0.0.7

func (p *DOMPrinterServicePingResult) GetSuccess() (v *PingResp)

func (*DOMPrinterServicePingResult) IsSetSuccess added in v0.0.7

func (p *DOMPrinterServicePingResult) IsSetSuccess() bool

func (*DOMPrinterServicePingResult) Read added in v0.0.7

func (p *DOMPrinterServicePingResult) Read(iprot thrift.TProtocol) (err error)

func (*DOMPrinterServicePingResult) ReadField0 added in v0.0.7

func (p *DOMPrinterServicePingResult) ReadField0(iprot thrift.TProtocol) error

func (*DOMPrinterServicePingResult) String added in v0.0.7

func (p *DOMPrinterServicePingResult) String() string

func (*DOMPrinterServicePingResult) Write added in v0.0.7

func (p *DOMPrinterServicePingResult) Write(oprot thrift.TProtocol) (err error)

type DOMPrinterServiceProcessor

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

func NewDOMPrinterServiceProcessor

func NewDOMPrinterServiceProcessor(handler DOMPrinterService) *DOMPrinterServiceProcessor

func (*DOMPrinterServiceProcessor) AddToProcessorMap

func (p *DOMPrinterServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*DOMPrinterServiceProcessor) GetProcessorFunction

func (p *DOMPrinterServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*DOMPrinterServiceProcessor) Process

func (p *DOMPrinterServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*DOMPrinterServiceProcessor) ProcessorMap

type DOMPrinterServiceSubmitPrintTaskArgs

type DOMPrinterServiceSubmitPrintTaskArgs struct {
	Request *SubmitPrintTaskReq `thrift:"request,1"`
}

func NewDOMPrinterServiceSubmitPrintTaskArgs

func NewDOMPrinterServiceSubmitPrintTaskArgs() *DOMPrinterServiceSubmitPrintTaskArgs

func (*DOMPrinterServiceSubmitPrintTaskArgs) GetRequest

func (*DOMPrinterServiceSubmitPrintTaskArgs) IsSetRequest

func (p *DOMPrinterServiceSubmitPrintTaskArgs) IsSetRequest() bool

func (*DOMPrinterServiceSubmitPrintTaskArgs) Read

func (*DOMPrinterServiceSubmitPrintTaskArgs) ReadField1

func (*DOMPrinterServiceSubmitPrintTaskArgs) String

func (*DOMPrinterServiceSubmitPrintTaskArgs) Write

type DOMPrinterServiceSubmitPrintTaskResult

type DOMPrinterServiceSubmitPrintTaskResult struct {
	Success *SubmitPrintTaskResp `thrift:"success,0,optional"`
}

func NewDOMPrinterServiceSubmitPrintTaskResult

func NewDOMPrinterServiceSubmitPrintTaskResult() *DOMPrinterServiceSubmitPrintTaskResult

func (*DOMPrinterServiceSubmitPrintTaskResult) GetSuccess

func (*DOMPrinterServiceSubmitPrintTaskResult) IsSetSuccess

func (p *DOMPrinterServiceSubmitPrintTaskResult) IsSetSuccess() bool

func (*DOMPrinterServiceSubmitPrintTaskResult) Read

func (*DOMPrinterServiceSubmitPrintTaskResult) ReadField0

func (*DOMPrinterServiceSubmitPrintTaskResult) String

func (*DOMPrinterServiceSubmitPrintTaskResult) Write

type DOMPrinterServiceUpdatePrintTaskArgs

type DOMPrinterServiceUpdatePrintTaskArgs struct {
	Request *UpdatePrintTaskReq `thrift:"request,1"`
}

func NewDOMPrinterServiceUpdatePrintTaskArgs

func NewDOMPrinterServiceUpdatePrintTaskArgs() *DOMPrinterServiceUpdatePrintTaskArgs

func (*DOMPrinterServiceUpdatePrintTaskArgs) GetRequest

func (*DOMPrinterServiceUpdatePrintTaskArgs) IsSetRequest

func (p *DOMPrinterServiceUpdatePrintTaskArgs) IsSetRequest() bool

func (*DOMPrinterServiceUpdatePrintTaskArgs) Read

func (*DOMPrinterServiceUpdatePrintTaskArgs) ReadField1

func (*DOMPrinterServiceUpdatePrintTaskArgs) String

func (*DOMPrinterServiceUpdatePrintTaskArgs) Write

type DOMPrinterServiceUpdatePrintTaskResult

type DOMPrinterServiceUpdatePrintTaskResult struct {
	Success *UpdatePrintTaskResp `thrift:"success,0,optional"`
}

func NewDOMPrinterServiceUpdatePrintTaskResult

func NewDOMPrinterServiceUpdatePrintTaskResult() *DOMPrinterServiceUpdatePrintTaskResult

func (*DOMPrinterServiceUpdatePrintTaskResult) GetSuccess

func (*DOMPrinterServiceUpdatePrintTaskResult) IsSetSuccess

func (p *DOMPrinterServiceUpdatePrintTaskResult) IsSetSuccess() bool

func (*DOMPrinterServiceUpdatePrintTaskResult) Read

func (*DOMPrinterServiceUpdatePrintTaskResult) ReadField0

func (*DOMPrinterServiceUpdatePrintTaskResult) String

func (*DOMPrinterServiceUpdatePrintTaskResult) Write

type FetchPrintTaskReq

type FetchPrintTaskReq struct {
	TaskState    TaskStateEnum `thrift:"TaskState,1" form:"TaskState" json:"TaskState" query:"TaskState"`
	OffsetTaskID *int64        `thrift:"OffsetTaskID,2,optional" form:"OffsetTaskID" json:"OffsetTaskID,omitempty" query:"OffsetTaskID"`
	LimitTaskNum *int64        `thrift:"LimitTaskNum,3,optional" form:"LimitTaskNum" json:"LimitTaskNum,omitempty" query:"LimitTaskNum"`
	BaseReq      *BaseReq      `thrift:"BaseReq,255" form:"BaseReq" json:"BaseReq" query:"BaseReq"`
}
var DOMPrinterServiceFetchPrintTaskArgs_Request_DEFAULT *FetchPrintTaskReq

func NewFetchPrintTaskReq

func NewFetchPrintTaskReq() *FetchPrintTaskReq

func (*FetchPrintTaskReq) GetBaseReq added in v0.0.2

func (p *FetchPrintTaskReq) GetBaseReq() (v *BaseReq)

func (*FetchPrintTaskReq) GetLimitTaskNum

func (p *FetchPrintTaskReq) GetLimitTaskNum() (v int64)

func (*FetchPrintTaskReq) GetOffsetTaskID

func (p *FetchPrintTaskReq) GetOffsetTaskID() (v int64)

func (*FetchPrintTaskReq) GetTaskState

func (p *FetchPrintTaskReq) GetTaskState() (v TaskStateEnum)

func (*FetchPrintTaskReq) IsSetBaseReq added in v0.0.2

func (p *FetchPrintTaskReq) IsSetBaseReq() bool

func (*FetchPrintTaskReq) IsSetLimitTaskNum

func (p *FetchPrintTaskReq) IsSetLimitTaskNum() bool

func (*FetchPrintTaskReq) IsSetOffsetTaskID

func (p *FetchPrintTaskReq) IsSetOffsetTaskID() bool

func (*FetchPrintTaskReq) Read

func (p *FetchPrintTaskReq) Read(iprot thrift.TProtocol) (err error)

func (*FetchPrintTaskReq) ReadField1

func (p *FetchPrintTaskReq) ReadField1(iprot thrift.TProtocol) error

func (*FetchPrintTaskReq) ReadField2

func (p *FetchPrintTaskReq) ReadField2(iprot thrift.TProtocol) error

func (*FetchPrintTaskReq) ReadField255 added in v0.0.2

func (p *FetchPrintTaskReq) ReadField255(iprot thrift.TProtocol) error

func (*FetchPrintTaskReq) ReadField3

func (p *FetchPrintTaskReq) ReadField3(iprot thrift.TProtocol) error

func (*FetchPrintTaskReq) String

func (p *FetchPrintTaskReq) String() string

func (*FetchPrintTaskReq) Write

func (p *FetchPrintTaskReq) Write(oprot thrift.TProtocol) (err error)

type FetchPrintTaskResp

type FetchPrintTaskResp struct {
	PrintTaskList []*PrintTaskDTO `thrift:"PrintTaskList,1" form:"PrintTaskList" json:"PrintTaskList" query:"PrintTaskList"`
	BaseResp      *BaseResp       `thrift:"BaseResp,255" form:"BaseResp" json:"BaseResp" query:"BaseResp"`
}
var DOMPrinterServiceFetchPrintTaskResult_Success_DEFAULT *FetchPrintTaskResp

func NewFetchPrintTaskResp

func NewFetchPrintTaskResp() *FetchPrintTaskResp

func (*FetchPrintTaskResp) GetBaseResp

func (p *FetchPrintTaskResp) GetBaseResp() (v *BaseResp)

func (*FetchPrintTaskResp) GetPrintTaskList

func (p *FetchPrintTaskResp) GetPrintTaskList() (v []*PrintTaskDTO)

func (*FetchPrintTaskResp) IsSetBaseResp

func (p *FetchPrintTaskResp) IsSetBaseResp() bool

func (*FetchPrintTaskResp) Read

func (p *FetchPrintTaskResp) Read(iprot thrift.TProtocol) (err error)

func (*FetchPrintTaskResp) ReadField1

func (p *FetchPrintTaskResp) ReadField1(iprot thrift.TProtocol) error

func (*FetchPrintTaskResp) ReadField255 added in v0.0.2

func (p *FetchPrintTaskResp) ReadField255(iprot thrift.TProtocol) error

func (*FetchPrintTaskResp) String

func (p *FetchPrintTaskResp) String() string

func (*FetchPrintTaskResp) Write

func (p *FetchPrintTaskResp) Write(oprot thrift.TProtocol) (err error)

type PingReq added in v0.0.7

type PingReq struct {
}
var DOMPrinterServicePingArgs_Request_DEFAULT *PingReq

func NewPingReq added in v0.0.7

func NewPingReq() *PingReq

func (*PingReq) Read added in v0.0.7

func (p *PingReq) Read(iprot thrift.TProtocol) (err error)

func (*PingReq) String added in v0.0.7

func (p *PingReq) String() string

func (*PingReq) Write added in v0.0.7

func (p *PingReq) Write(oprot thrift.TProtocol) (err error)

type PingResp added in v0.0.7

type PingResp struct {
	Message string `thrift:"Message,1" form:"Message" json:"Message" query:"Message"`
}
var DOMPrinterServicePingResult_Success_DEFAULT *PingResp

func NewPingResp added in v0.0.7

func NewPingResp() *PingResp

func (*PingResp) GetMessage added in v0.0.7

func (p *PingResp) GetMessage() (v string)

func (*PingResp) Read added in v0.0.7

func (p *PingResp) Read(iprot thrift.TProtocol) (err error)

func (*PingResp) ReadField1 added in v0.0.7

func (p *PingResp) ReadField1(iprot thrift.TProtocol) error

func (*PingResp) String added in v0.0.7

func (p *PingResp) String() string

func (*PingResp) Write added in v0.0.7

func (p *PingResp) Write(oprot thrift.TProtocol) (err error)

type PrintTaskDTO

type PrintTaskDTO struct {
	SubmitTime  string        `thrift:"SubmitTime,1" form:"SubmitTime" json:"SubmitTime" query:"SubmitTime"`
	UserName    string        `thrift:"UserName,2" form:"UserName" json:"UserName" query:"UserName"`
	TeamName    string        `thrift:"TeamName,3" form:"TeamName" json:"TeamName" query:"TeamName"`
	TeamID      string        `thrift:"TeamID,4" form:"TeamID" json:"TeamID" query:"TeamID"`
	Location    string        `thrift:"Location,5" form:"Location" json:"Location" query:"Location"`
	Language    string        `thrift:"Language,6" form:"Language" json:"Language" query:"Language"`
	FileName    string        `thrift:"FileName,7" form:"FileName" json:"FileName" query:"FileName"`
	SourceCode  string        `thrift:"SourceCode,8" form:"SourceCode" json:"SourceCode" query:"SourceCode"`
	PrintTaskID int64         `thrift:"PrintTaskID,9" form:"PrintTaskID" json:"PrintTaskID" query:"PrintTaskID"`
	TaskState   TaskStateEnum `thrift:"TaskState,10" form:"TaskState" json:"TaskState" query:"TaskState"`
}
var SubmitPrintTaskReq_PrintTask_DEFAULT *PrintTaskDTO

func NewPrintTaskDTO

func NewPrintTaskDTO() *PrintTaskDTO

func (*PrintTaskDTO) GetFileName

func (p *PrintTaskDTO) GetFileName() (v string)

func (*PrintTaskDTO) GetLanguage

func (p *PrintTaskDTO) GetLanguage() (v string)

func (*PrintTaskDTO) GetLocation

func (p *PrintTaskDTO) GetLocation() (v string)

func (*PrintTaskDTO) GetPrintTaskID

func (p *PrintTaskDTO) GetPrintTaskID() (v int64)

func (*PrintTaskDTO) GetSourceCode

func (p *PrintTaskDTO) GetSourceCode() (v string)

func (*PrintTaskDTO) GetSubmitTime

func (p *PrintTaskDTO) GetSubmitTime() (v string)

func (*PrintTaskDTO) GetTaskState

func (p *PrintTaskDTO) GetTaskState() (v TaskStateEnum)

func (*PrintTaskDTO) GetTeamID

func (p *PrintTaskDTO) GetTeamID() (v string)

func (*PrintTaskDTO) GetTeamName

func (p *PrintTaskDTO) GetTeamName() (v string)

func (*PrintTaskDTO) GetUserName

func (p *PrintTaskDTO) GetUserName() (v string)

func (*PrintTaskDTO) Read

func (p *PrintTaskDTO) Read(iprot thrift.TProtocol) (err error)

func (*PrintTaskDTO) ReadField1

func (p *PrintTaskDTO) ReadField1(iprot thrift.TProtocol) error

func (*PrintTaskDTO) ReadField10

func (p *PrintTaskDTO) ReadField10(iprot thrift.TProtocol) error

func (*PrintTaskDTO) ReadField2

func (p *PrintTaskDTO) ReadField2(iprot thrift.TProtocol) error

func (*PrintTaskDTO) ReadField3

func (p *PrintTaskDTO) ReadField3(iprot thrift.TProtocol) error

func (*PrintTaskDTO) ReadField4

func (p *PrintTaskDTO) ReadField4(iprot thrift.TProtocol) error

func (*PrintTaskDTO) ReadField5

func (p *PrintTaskDTO) ReadField5(iprot thrift.TProtocol) error

func (*PrintTaskDTO) ReadField6

func (p *PrintTaskDTO) ReadField6(iprot thrift.TProtocol) error

func (*PrintTaskDTO) ReadField7

func (p *PrintTaskDTO) ReadField7(iprot thrift.TProtocol) error

func (*PrintTaskDTO) ReadField8

func (p *PrintTaskDTO) ReadField8(iprot thrift.TProtocol) error

func (*PrintTaskDTO) ReadField9

func (p *PrintTaskDTO) ReadField9(iprot thrift.TProtocol) error

func (*PrintTaskDTO) String

func (p *PrintTaskDTO) String() string

func (*PrintTaskDTO) Write

func (p *PrintTaskDTO) Write(oprot thrift.TProtocol) (err error)

type RespCodeEnum

type RespCodeEnum int64
const (
	RespCodeEnum_Success      RespCodeEnum = 0
	RespCodeEnum_ParamInvalid RespCodeEnum = 1
	RespCodeEnum_DBErr        RespCodeEnum = 2
)

func RespCodeEnumFromString

func RespCodeEnumFromString(s string) (RespCodeEnum, error)

func RespCodeEnumPtr

func RespCodeEnumPtr(v RespCodeEnum) *RespCodeEnum

func (RespCodeEnum) MarshalText

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

func (*RespCodeEnum) Scan

func (p *RespCodeEnum) Scan(value interface{}) (err error)

func (RespCodeEnum) String

func (p RespCodeEnum) String() string

func (*RespCodeEnum) UnmarshalText

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

func (*RespCodeEnum) Value

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

type SubmitPrintTaskReq

type SubmitPrintTaskReq struct {
	PrintTask *PrintTaskDTO `thrift:"PrintTask,1" form:"PrintTask" json:"PrintTask" query:"PrintTask"`
	BaseReq   *BaseReq      `thrift:"BaseReq,255" form:"BaseReq" json:"BaseReq" query:"BaseReq"`
}
var DOMPrinterServiceSubmitPrintTaskArgs_Request_DEFAULT *SubmitPrintTaskReq

func NewSubmitPrintTaskReq

func NewSubmitPrintTaskReq() *SubmitPrintTaskReq

func (*SubmitPrintTaskReq) GetBaseReq added in v0.0.2

func (p *SubmitPrintTaskReq) GetBaseReq() (v *BaseReq)

func (*SubmitPrintTaskReq) GetPrintTask

func (p *SubmitPrintTaskReq) GetPrintTask() (v *PrintTaskDTO)

func (*SubmitPrintTaskReq) IsSetBaseReq added in v0.0.2

func (p *SubmitPrintTaskReq) IsSetBaseReq() bool

func (*SubmitPrintTaskReq) IsSetPrintTask

func (p *SubmitPrintTaskReq) IsSetPrintTask() bool

func (*SubmitPrintTaskReq) Read

func (p *SubmitPrintTaskReq) Read(iprot thrift.TProtocol) (err error)

func (*SubmitPrintTaskReq) ReadField1

func (p *SubmitPrintTaskReq) ReadField1(iprot thrift.TProtocol) error

func (*SubmitPrintTaskReq) ReadField255 added in v0.0.2

func (p *SubmitPrintTaskReq) ReadField255(iprot thrift.TProtocol) error

func (*SubmitPrintTaskReq) String

func (p *SubmitPrintTaskReq) String() string

func (*SubmitPrintTaskReq) Write

func (p *SubmitPrintTaskReq) Write(oprot thrift.TProtocol) (err error)

type SubmitPrintTaskResp

type SubmitPrintTaskResp struct {
	PrintTaskID int64         `thrift:"PrintTaskID,1" form:"PrintTaskID" json:"PrintTaskID" query:"PrintTaskID"`
	TaskState   TaskStateEnum `thrift:"TaskState,2" form:"TaskState" json:"TaskState" query:"TaskState"`
	BaseResp    *BaseResp     `thrift:"BaseResp,255" form:"BaseResp" json:"BaseResp" query:"BaseResp"`
}
var DOMPrinterServiceSubmitPrintTaskResult_Success_DEFAULT *SubmitPrintTaskResp

func NewSubmitPrintTaskResp

func NewSubmitPrintTaskResp() *SubmitPrintTaskResp

func (*SubmitPrintTaskResp) GetBaseResp

func (p *SubmitPrintTaskResp) GetBaseResp() (v *BaseResp)

func (*SubmitPrintTaskResp) GetPrintTaskID

func (p *SubmitPrintTaskResp) GetPrintTaskID() (v int64)

func (*SubmitPrintTaskResp) GetTaskState

func (p *SubmitPrintTaskResp) GetTaskState() (v TaskStateEnum)

func (*SubmitPrintTaskResp) IsSetBaseResp

func (p *SubmitPrintTaskResp) IsSetBaseResp() bool

func (*SubmitPrintTaskResp) Read

func (p *SubmitPrintTaskResp) Read(iprot thrift.TProtocol) (err error)

func (*SubmitPrintTaskResp) ReadField1

func (p *SubmitPrintTaskResp) ReadField1(iprot thrift.TProtocol) error

func (*SubmitPrintTaskResp) ReadField2

func (p *SubmitPrintTaskResp) ReadField2(iprot thrift.TProtocol) error

func (*SubmitPrintTaskResp) ReadField255 added in v0.0.2

func (p *SubmitPrintTaskResp) ReadField255(iprot thrift.TProtocol) error

func (*SubmitPrintTaskResp) String

func (p *SubmitPrintTaskResp) String() string

func (*SubmitPrintTaskResp) Write

func (p *SubmitPrintTaskResp) Write(oprot thrift.TProtocol) (err error)

type TaskStateEnum

type TaskStateEnum int64
const (
	TaskStateEnum_Unknown   TaskStateEnum = 0
	TaskStateEnum_Submitted TaskStateEnum = 1
	TaskStateEnum_Completed TaskStateEnum = 2
	TaskStateEnum_Abandoned TaskStateEnum = 3
)

func TaskStateEnumFromString

func TaskStateEnumFromString(s string) (TaskStateEnum, error)

func TaskStateEnumPtr

func TaskStateEnumPtr(v TaskStateEnum) *TaskStateEnum

func (TaskStateEnum) MarshalText

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

func (*TaskStateEnum) Scan

func (p *TaskStateEnum) Scan(value interface{}) (err error)

func (TaskStateEnum) String

func (p TaskStateEnum) String() string

func (*TaskStateEnum) UnmarshalText

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

func (*TaskStateEnum) Value

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

type UpdatePrintTaskReq

type UpdatePrintTaskReq struct {
	PrintTaskIDList []int64       `thrift:"PrintTaskIDList,1" form:"PrintTaskIDList" json:"PrintTaskIDList" query:"PrintTaskIDList"`
	TaskState       TaskStateEnum `thrift:"TaskState,2" form:"TaskState" json:"TaskState" query:"TaskState"`
	BaseReq         *BaseReq      `thrift:"BaseReq,255" form:"BaseReq" json:"BaseReq" query:"BaseReq"`
}
var DOMPrinterServiceUpdatePrintTaskArgs_Request_DEFAULT *UpdatePrintTaskReq

func NewUpdatePrintTaskReq

func NewUpdatePrintTaskReq() *UpdatePrintTaskReq

func (*UpdatePrintTaskReq) GetBaseReq added in v0.0.2

func (p *UpdatePrintTaskReq) GetBaseReq() (v *BaseReq)

func (*UpdatePrintTaskReq) GetPrintTaskIDList

func (p *UpdatePrintTaskReq) GetPrintTaskIDList() (v []int64)

func (*UpdatePrintTaskReq) GetTaskState

func (p *UpdatePrintTaskReq) GetTaskState() (v TaskStateEnum)

func (*UpdatePrintTaskReq) IsSetBaseReq added in v0.0.2

func (p *UpdatePrintTaskReq) IsSetBaseReq() bool

func (*UpdatePrintTaskReq) Read

func (p *UpdatePrintTaskReq) Read(iprot thrift.TProtocol) (err error)

func (*UpdatePrintTaskReq) ReadField1

func (p *UpdatePrintTaskReq) ReadField1(iprot thrift.TProtocol) error

func (*UpdatePrintTaskReq) ReadField2

func (p *UpdatePrintTaskReq) ReadField2(iprot thrift.TProtocol) error

func (*UpdatePrintTaskReq) ReadField255 added in v0.0.2

func (p *UpdatePrintTaskReq) ReadField255(iprot thrift.TProtocol) error

func (*UpdatePrintTaskReq) String

func (p *UpdatePrintTaskReq) String() string

func (*UpdatePrintTaskReq) Write

func (p *UpdatePrintTaskReq) Write(oprot thrift.TProtocol) (err error)

type UpdatePrintTaskResp

type UpdatePrintTaskResp struct {
	BaseResp *BaseResp `thrift:"BaseResp,255" form:"BaseResp" json:"BaseResp" query:"BaseResp"`
}
var DOMPrinterServiceUpdatePrintTaskResult_Success_DEFAULT *UpdatePrintTaskResp

func NewUpdatePrintTaskResp

func NewUpdatePrintTaskResp() *UpdatePrintTaskResp

func (*UpdatePrintTaskResp) GetBaseResp

func (p *UpdatePrintTaskResp) GetBaseResp() (v *BaseResp)

func (*UpdatePrintTaskResp) IsSetBaseResp

func (p *UpdatePrintTaskResp) IsSetBaseResp() bool

func (*UpdatePrintTaskResp) Read

func (p *UpdatePrintTaskResp) Read(iprot thrift.TProtocol) (err error)

func (*UpdatePrintTaskResp) ReadField255 added in v0.0.2

func (p *UpdatePrintTaskResp) ReadField255(iprot thrift.TProtocol) error

func (*UpdatePrintTaskResp) String

func (p *UpdatePrintTaskResp) String() string

func (*UpdatePrintTaskResp) Write

func (p *UpdatePrintTaskResp) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

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