resources

package
v0.0.0-...-8ab9052 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int
View Source
var Request_Msg_DEFAULT string

Functions

This section is empty.

Types

type HelloService

type HelloService interface {
	// Parameters:
	//  - Request
	SayHello(ctx context.Context, request *Request) (r *Response, 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) SayHello

func (p *HelloServiceClient) SayHello(ctx context.Context, request *Request) (r *Response, err error)

Parameters:

  • Request

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

type HelloServiceSayHelloArgs

type HelloServiceSayHelloArgs struct {
	Request *Request `thrift:"request,1,required" db:"request" json:"request"`
}

Attributes:

  • Request

func NewHelloServiceSayHelloArgs

func NewHelloServiceSayHelloArgs() *HelloServiceSayHelloArgs

func (*HelloServiceSayHelloArgs) GetRequest

func (p *HelloServiceSayHelloArgs) GetRequest() *Request

func (*HelloServiceSayHelloArgs) IsSetRequest

func (p *HelloServiceSayHelloArgs) IsSetRequest() bool

func (*HelloServiceSayHelloArgs) Read

func (*HelloServiceSayHelloArgs) ReadField1

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

func (*HelloServiceSayHelloArgs) String

func (p *HelloServiceSayHelloArgs) String() string

func (*HelloServiceSayHelloArgs) Write

type HelloServiceSayHelloResult

type HelloServiceSayHelloResult struct {
	Success *Response `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewHelloServiceSayHelloResult

func NewHelloServiceSayHelloResult() *HelloServiceSayHelloResult

func (*HelloServiceSayHelloResult) GetSuccess

func (p *HelloServiceSayHelloResult) GetSuccess() *Response

func (*HelloServiceSayHelloResult) IsSetSuccess

func (p *HelloServiceSayHelloResult) IsSetSuccess() bool

func (*HelloServiceSayHelloResult) Read

func (*HelloServiceSayHelloResult) ReadField0

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

func (*HelloServiceSayHelloResult) String

func (p *HelloServiceSayHelloResult) String() string

func (*HelloServiceSayHelloResult) Write

type Request

type Request struct {
	Msg *string `thrift:"msg,1" db:"msg" json:"msg,omitempty"`
}

Attributes:

  • Msg
var HelloServiceSayHelloArgs_Request_DEFAULT *Request

func NewRequest

func NewRequest() *Request

func (*Request) GetMsg

func (p *Request) GetMsg() string

func (*Request) IsSetMsg

func (p *Request) IsSetMsg() bool

func (*Request) Read

func (p *Request) Read(iprot thrift.TProtocol) error

func (*Request) ReadField1

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

func (*Request) String

func (p *Request) String() string

func (*Request) Write

func (p *Request) Write(oprot thrift.TProtocol) error

type Response

type Response struct {
	Code        int32  `thrift:"code,1,required" db:"code" json:"code"`
	ResponseMsg string `thrift:"responseMsg,2,required" db:"responseMsg" json:"responseMsg"`
}

Attributes:

  • Code
  • ResponseMsg
var HelloServiceSayHelloResult_Success_DEFAULT *Response

func NewResponse

func NewResponse() *Response

func (*Response) GetCode

func (p *Response) GetCode() int32

func (*Response) GetResponseMsg

func (p *Response) GetResponseMsg() string

func (*Response) Read

func (p *Response) Read(iprot thrift.TProtocol) error

func (*Response) ReadField1

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

func (*Response) ReadField2

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

func (*Response) String

func (p *Response) String() string

func (*Response) Write

func (p *Response) Write(oprot thrift.TProtocol) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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