example

package
v0.0.0-...-13a9a9d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelloReq

type HelloReq struct {
	Name string `thrift:"Name,1" json:"Name" query:"name"`
}
var HelloServiceHelloMethodArgs_Request_DEFAULT *HelloReq

func NewHelloReq

func NewHelloReq() *HelloReq

func (*HelloReq) GetName

func (p *HelloReq) GetName() (v string)

func (*HelloReq) IsValid

func (p *HelloReq) IsValid() error

func (*HelloReq) Read

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

func (*HelloReq) ReadField1

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

func (*HelloReq) String

func (p *HelloReq) String() string

func (*HelloReq) Write

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

type HelloResp

type HelloResp struct {
	RespBody string `thrift:"RespBody,1" form:"RespBody" json:"RespBody" query:"RespBody"`
}
var HelloServiceHelloMethodResult_Success_DEFAULT *HelloResp

func NewHelloResp

func NewHelloResp() *HelloResp

func (*HelloResp) GetRespBody

func (p *HelloResp) GetRespBody() (v string)

func (*HelloResp) IsValid

func (p *HelloResp) IsValid() error

func (*HelloResp) Read

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

func (*HelloResp) ReadField1

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

func (*HelloResp) String

func (p *HelloResp) String() string

func (*HelloResp) Write

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

type HelloService

type HelloService interface {
	HelloMethod(ctx context.Context, request *HelloReq) (r *HelloResp, err error)
}

type HelloServiceClient

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

func NewHelloServiceClient

func NewHelloServiceClient(c thrift.TClient) *HelloServiceClient

func NewHelloServiceClientProtocol

func NewHelloServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *HelloServiceClient

func (*HelloServiceClient) Client_

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

func (*HelloServiceClient) HelloMethod

func (p *HelloServiceClient) HelloMethod(ctx context.Context, request *HelloReq) (r *HelloResp, err error)

type HelloServiceHelloMethodArgs

type HelloServiceHelloMethodArgs struct {
	Request *HelloReq `thrift:"request,1"`
}

func NewHelloServiceHelloMethodArgs

func NewHelloServiceHelloMethodArgs() *HelloServiceHelloMethodArgs

func (*HelloServiceHelloMethodArgs) GetRequest

func (p *HelloServiceHelloMethodArgs) GetRequest() (v *HelloReq)

func (*HelloServiceHelloMethodArgs) IsSetRequest

func (p *HelloServiceHelloMethodArgs) IsSetRequest() bool

func (*HelloServiceHelloMethodArgs) Read

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

func (*HelloServiceHelloMethodArgs) ReadField1

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

func (*HelloServiceHelloMethodArgs) String

func (p *HelloServiceHelloMethodArgs) String() string

func (*HelloServiceHelloMethodArgs) Write

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

type HelloServiceHelloMethodResult

type HelloServiceHelloMethodResult struct {
	Success *HelloResp `thrift:"success,0,optional"`
}

func NewHelloServiceHelloMethodResult

func NewHelloServiceHelloMethodResult() *HelloServiceHelloMethodResult

func (*HelloServiceHelloMethodResult) GetSuccess

func (p *HelloServiceHelloMethodResult) GetSuccess() (v *HelloResp)

func (*HelloServiceHelloMethodResult) IsSetSuccess

func (p *HelloServiceHelloMethodResult) IsSetSuccess() bool

func (*HelloServiceHelloMethodResult) Read

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

func (*HelloServiceHelloMethodResult) ReadField0

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

func (*HelloServiceHelloMethodResult) String

func (*HelloServiceHelloMethodResult) Write

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

type HelloServiceProcessor

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

func NewHelloServiceProcessor

func NewHelloServiceProcessor(handler HelloService) *HelloServiceProcessor

func (*HelloServiceProcessor) AddToProcessorMap

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

func (*HelloServiceProcessor) GetProcessorFunction

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

func (*HelloServiceProcessor) Process

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

func (*HelloServiceProcessor) ProcessorMap

func (p *HelloServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

Jump to

Keyboard shortcuts

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