service

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type Request

type Request struct {
	Field1 int8  `thrift:"field1,1" db:"field1" json:"field1"`
	Field2 int16 `thrift:"field2,2" db:"field2" json:"field2"`
}

Attributes:

  • Field1
  • Field2
var TestServiceSendArgs_Res_DEFAULT *Request

func NewRequest

func NewRequest() *Request

func (*Request) Equals

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

func (*Request) GetField1

func (p *Request) GetField1() int8

func (*Request) GetField2

func (p *Request) GetField2() int16

func (*Request) Read

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

func (*Request) ReadField1

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

func (*Request) ReadField2

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

func (*Request) String

func (p *Request) String() string

func (*Request) Write

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

type Response

type Response struct {
	Field1 int8  `thrift:"field1,1" db:"field1" json:"field1"`
	Field2 int16 `thrift:"field2,2" db:"field2" json:"field2"`
}

Attributes:

  • Field1
  • Field2
var TestServiceSendResult_Success_DEFAULT *Response

func NewResponse

func NewResponse() *Response

func (*Response) Equals

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

func (*Response) GetField1

func (p *Response) GetField1() int8

func (*Response) GetField2

func (p *Response) GetField2() int16

func (*Response) Read

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

func (*Response) ReadField1

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

func (*Response) ReadField2

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

func (*Response) String

func (p *Response) String() string

func (*Response) Write

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

type TestService

type TestService interface {
	// Parameters:
	//  - Res
	//  - B
	Send(ctx context.Context, res *Request, b int8) (_r *Response, _err error)
}

type TestServiceClient

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

func NewTestServiceClient

func NewTestServiceClient(c thrift.TClient) *TestServiceClient

func NewTestServiceClientProtocol

func NewTestServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TestServiceClient

func (*TestServiceClient) Client_

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

func (*TestServiceClient) LastResponseMeta_

func (p *TestServiceClient) LastResponseMeta_() thrift.ResponseMeta

func (*TestServiceClient) Send

func (p *TestServiceClient) Send(ctx context.Context, res *Request, b int8) (_r *Response, _err error)

Parameters:

  • Res
  • B

func (*TestServiceClient) SetLastResponseMeta_

func (p *TestServiceClient) SetLastResponseMeta_(meta thrift.ResponseMeta)

type TestServiceProcessor

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

func NewTestServiceProcessor

func NewTestServiceProcessor(handler TestService) *TestServiceProcessor

func (*TestServiceProcessor) AddToProcessorMap

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

func (*TestServiceProcessor) GetProcessorFunction

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

func (*TestServiceProcessor) Process

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

func (*TestServiceProcessor) ProcessorMap

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

type TestServiceSendArgs

type TestServiceSendArgs struct {
	Res *Request `thrift:"res,1" db:"res" json:"res"`
	B   int8     `thrift:"b,2" db:"b" json:"b"`
}

Attributes:

  • Res
  • B

func NewTestServiceSendArgs

func NewTestServiceSendArgs() *TestServiceSendArgs

func (*TestServiceSendArgs) GetB

func (p *TestServiceSendArgs) GetB() int8

func (*TestServiceSendArgs) GetRes

func (p *TestServiceSendArgs) GetRes() *Request

func (*TestServiceSendArgs) IsSetRes

func (p *TestServiceSendArgs) IsSetRes() bool

func (*TestServiceSendArgs) Read

func (*TestServiceSendArgs) ReadField1

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

func (*TestServiceSendArgs) ReadField2

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

func (*TestServiceSendArgs) String

func (p *TestServiceSendArgs) String() string

func (*TestServiceSendArgs) Write

type TestServiceSendResult

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

Attributes:

  • Success

func NewTestServiceSendResult

func NewTestServiceSendResult() *TestServiceSendResult

func (*TestServiceSendResult) GetSuccess

func (p *TestServiceSendResult) GetSuccess() *Response

func (*TestServiceSendResult) IsSetSuccess

func (p *TestServiceSendResult) IsSetSuccess() bool

func (*TestServiceSendResult) Read

func (*TestServiceSendResult) ReadField0

func (p *TestServiceSendResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error

func (*TestServiceSendResult) String

func (p *TestServiceSendResult) String() string

func (*TestServiceSendResult) Write

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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