template

package
v0.0.0-...-431f65c Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

View Source
var PingRequest_Text_DEFAULT string

Functions

This section is empty.

Types

type BaseResp

type BaseResp struct {
	Code int64  `thrift:"code,1" frugal:"1,default,i64" json:"code"`
	Msg  string `thrift:"msg,2" frugal:"2,default,string" json:"msg"`
}
var PingResponse_Base_DEFAULT *BaseResp

func NewBaseResp

func NewBaseResp() *BaseResp

func (*BaseResp) BLength

func (p *BaseResp) BLength() int

func (*BaseResp) DeepEqual

func (p *BaseResp) DeepEqual(ano *BaseResp) bool

func (*BaseResp) FastRead

func (p *BaseResp) FastRead(buf []byte) (int, error)

func (*BaseResp) FastReadField1

func (p *BaseResp) FastReadField1(buf []byte) (int, error)

func (*BaseResp) FastReadField2

func (p *BaseResp) FastReadField2(buf []byte) (int, error)

func (*BaseResp) FastWrite

func (p *BaseResp) FastWrite(buf []byte) int

for compatibility

func (*BaseResp) FastWriteNocopy

func (p *BaseResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*BaseResp) Field1DeepEqual

func (p *BaseResp) Field1DeepEqual(src int64) bool

func (*BaseResp) Field2DeepEqual

func (p *BaseResp) Field2DeepEqual(src string) bool

func (*BaseResp) GetCode

func (p *BaseResp) GetCode() (v int64)

func (*BaseResp) GetMsg

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

func (*BaseResp) InitDefault

func (p *BaseResp) InitDefault()

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) SetCode

func (p *BaseResp) SetCode(val int64)

func (*BaseResp) SetMsg

func (p *BaseResp) SetMsg(val string)

func (*BaseResp) String

func (p *BaseResp) String() string

func (*BaseResp) Write

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

type PingRequest

type PingRequest struct {
	Text *string `thrift:"text,1,optional" frugal:"1,optional,string" json:"text,omitempty"`
}
var TemplateServicePingArgs_Req_DEFAULT *PingRequest

func NewPingRequest

func NewPingRequest() *PingRequest

func (*PingRequest) BLength

func (p *PingRequest) BLength() int

func (*PingRequest) DeepEqual

func (p *PingRequest) DeepEqual(ano *PingRequest) bool

func (*PingRequest) FastRead

func (p *PingRequest) FastRead(buf []byte) (int, error)

func (*PingRequest) FastReadField1

func (p *PingRequest) FastReadField1(buf []byte) (int, error)

func (*PingRequest) FastWrite

func (p *PingRequest) FastWrite(buf []byte) int

for compatibility

func (*PingRequest) FastWriteNocopy

func (p *PingRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*PingRequest) Field1DeepEqual

func (p *PingRequest) Field1DeepEqual(src *string) bool

func (*PingRequest) GetText

func (p *PingRequest) GetText() (v string)

func (*PingRequest) InitDefault

func (p *PingRequest) InitDefault()

func (*PingRequest) IsSetText

func (p *PingRequest) IsSetText() bool

func (*PingRequest) Read

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

func (*PingRequest) ReadField1

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

func (*PingRequest) SetText

func (p *PingRequest) SetText(val *string)

func (*PingRequest) String

func (p *PingRequest) String() string

func (*PingRequest) Write

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

type PingResponse

type PingResponse struct {
	Base *BaseResp `thrift:"base,1" frugal:"1,default,BaseResp" json:"base"`
	Pong string    `thrift:"pong,2" frugal:"2,default,string" json:"pong"`
}
var TemplateServicePingResult_Success_DEFAULT *PingResponse

func NewPingResponse

func NewPingResponse() *PingResponse

func (*PingResponse) BLength

func (p *PingResponse) BLength() int

func (*PingResponse) DeepEqual

func (p *PingResponse) DeepEqual(ano *PingResponse) bool

func (*PingResponse) FastRead

func (p *PingResponse) FastRead(buf []byte) (int, error)

func (*PingResponse) FastReadField1

func (p *PingResponse) FastReadField1(buf []byte) (int, error)

func (*PingResponse) FastReadField2

func (p *PingResponse) FastReadField2(buf []byte) (int, error)

func (*PingResponse) FastWrite

func (p *PingResponse) FastWrite(buf []byte) int

for compatibility

func (*PingResponse) FastWriteNocopy

func (p *PingResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*PingResponse) Field1DeepEqual

func (p *PingResponse) Field1DeepEqual(src *BaseResp) bool

func (*PingResponse) Field2DeepEqual

func (p *PingResponse) Field2DeepEqual(src string) bool

func (*PingResponse) GetBase

func (p *PingResponse) GetBase() (v *BaseResp)

func (*PingResponse) GetPong

func (p *PingResponse) GetPong() (v string)

func (*PingResponse) InitDefault

func (p *PingResponse) InitDefault()

func (*PingResponse) IsSetBase

func (p *PingResponse) IsSetBase() bool

func (*PingResponse) Read

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

func (*PingResponse) ReadField1

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

func (*PingResponse) ReadField2

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

func (*PingResponse) SetBase

func (p *PingResponse) SetBase(val *BaseResp)

func (*PingResponse) SetPong

func (p *PingResponse) SetPong(val string)

func (*PingResponse) String

func (p *PingResponse) String() string

func (*PingResponse) Write

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

type TemplateService

type TemplateService interface {
	Ping(ctx context.Context, req *PingRequest) (r *PingResponse, err error)
}

type TemplateServiceClient

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

func NewTemplateServiceClient

func NewTemplateServiceClient(c thrift.TClient) *TemplateServiceClient

func NewTemplateServiceClientProtocol

func NewTemplateServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TemplateServiceClient

func (*TemplateServiceClient) Client_

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

func (*TemplateServiceClient) Ping

func (p *TemplateServiceClient) Ping(ctx context.Context, req *PingRequest) (r *PingResponse, err error)

type TemplateServicePingArgs

type TemplateServicePingArgs struct {
	Req *PingRequest `thrift:"req,1" frugal:"1,default,PingRequest" json:"req"`
}

func NewTemplateServicePingArgs

func NewTemplateServicePingArgs() *TemplateServicePingArgs

func (*TemplateServicePingArgs) BLength

func (p *TemplateServicePingArgs) BLength() int

func (*TemplateServicePingArgs) DeepEqual

func (*TemplateServicePingArgs) FastRead

func (p *TemplateServicePingArgs) FastRead(buf []byte) (int, error)

func (*TemplateServicePingArgs) FastReadField1

func (p *TemplateServicePingArgs) FastReadField1(buf []byte) (int, error)

func (*TemplateServicePingArgs) FastWrite

func (p *TemplateServicePingArgs) FastWrite(buf []byte) int

for compatibility

func (*TemplateServicePingArgs) FastWriteNocopy

func (p *TemplateServicePingArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*TemplateServicePingArgs) Field1DeepEqual

func (p *TemplateServicePingArgs) Field1DeepEqual(src *PingRequest) bool

func (*TemplateServicePingArgs) GetFirstArgument

func (p *TemplateServicePingArgs) GetFirstArgument() interface{}

func (*TemplateServicePingArgs) GetReq

func (p *TemplateServicePingArgs) GetReq() (v *PingRequest)

func (*TemplateServicePingArgs) InitDefault

func (p *TemplateServicePingArgs) InitDefault()

func (*TemplateServicePingArgs) IsSetReq

func (p *TemplateServicePingArgs) IsSetReq() bool

func (*TemplateServicePingArgs) Read

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

func (*TemplateServicePingArgs) ReadField1

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

func (*TemplateServicePingArgs) SetReq

func (p *TemplateServicePingArgs) SetReq(val *PingRequest)

func (*TemplateServicePingArgs) String

func (p *TemplateServicePingArgs) String() string

func (*TemplateServicePingArgs) Write

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

type TemplateServicePingResult

type TemplateServicePingResult struct {
	Success *PingResponse `thrift:"success,0,optional" frugal:"0,optional,PingResponse" json:"success,omitempty"`
}

func NewTemplateServicePingResult

func NewTemplateServicePingResult() *TemplateServicePingResult

func (*TemplateServicePingResult) BLength

func (p *TemplateServicePingResult) BLength() int

func (*TemplateServicePingResult) DeepEqual

func (*TemplateServicePingResult) FastRead

func (p *TemplateServicePingResult) FastRead(buf []byte) (int, error)

func (*TemplateServicePingResult) FastReadField0

func (p *TemplateServicePingResult) FastReadField0(buf []byte) (int, error)

func (*TemplateServicePingResult) FastWrite

func (p *TemplateServicePingResult) FastWrite(buf []byte) int

for compatibility

func (*TemplateServicePingResult) FastWriteNocopy

func (p *TemplateServicePingResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*TemplateServicePingResult) Field0DeepEqual

func (p *TemplateServicePingResult) Field0DeepEqual(src *PingResponse) bool

func (*TemplateServicePingResult) GetResult

func (p *TemplateServicePingResult) GetResult() interface{}

func (*TemplateServicePingResult) GetSuccess

func (p *TemplateServicePingResult) GetSuccess() (v *PingResponse)

func (*TemplateServicePingResult) InitDefault

func (p *TemplateServicePingResult) InitDefault()

func (*TemplateServicePingResult) IsSetSuccess

func (p *TemplateServicePingResult) IsSetSuccess() bool

func (*TemplateServicePingResult) Read

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

func (*TemplateServicePingResult) ReadField0

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

func (*TemplateServicePingResult) SetSuccess

func (p *TemplateServicePingResult) SetSuccess(x interface{})

func (*TemplateServicePingResult) String

func (p *TemplateServicePingResult) String() string

func (*TemplateServicePingResult) Write

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

type TemplateServiceProcessor

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

func NewTemplateServiceProcessor

func NewTemplateServiceProcessor(handler TemplateService) *TemplateServiceProcessor

func (*TemplateServiceProcessor) AddToProcessorMap

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

func (*TemplateServiceProcessor) GetProcessorFunction

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

func (*TemplateServiceProcessor) Process

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

func (*TemplateServiceProcessor) ProcessorMap

Directories

Path Synopsis
Code generated by Kitex v0.6.2.
Code generated by Kitex v0.6.2.

Jump to

Keyboard shortcuts

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