gen

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type CommonValues

type CommonValues struct {
	TransactionId int64 `thrift:"transactionId,1" db:"transactionId" json:"transactionId"`
}

Attributes:

  • TransactionId
var TestServiceSayHelloArgs_Values_DEFAULT *CommonValues

func NewCommonValues

func NewCommonValues() *CommonValues

func (*CommonValues) Equals added in v0.5.0

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

func (*CommonValues) GetTransactionId

func (p *CommonValues) GetTransactionId() int64

func (*CommonValues) Read

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

func (*CommonValues) ReadField1

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

func (*CommonValues) String

func (p *CommonValues) String() string

func (*CommonValues) Validate added in v0.5.0

func (p *CommonValues) Validate() error

func (*CommonValues) Write

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

type EatResponse

type EatResponse struct {
	Message string `thrift:"message,1" db:"message" json:"message"`
}

Attributes:

  • Message
var MinionsServiceEatResult_Success_DEFAULT *EatResponse

func NewEatResponse

func NewEatResponse() *EatResponse

func (*EatResponse) Equals added in v0.5.0

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

func (*EatResponse) GetMessage

func (p *EatResponse) GetMessage() string

func (*EatResponse) Read

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

func (*EatResponse) ReadField1

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

func (*EatResponse) String

func (p *EatResponse) String() string

func (*EatResponse) Validate added in v0.5.0

func (p *EatResponse) Validate() error

func (*EatResponse) Write

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

type HelloValues

type HelloValues struct {
	Message string `thrift:"message,1" db:"message" json:"message"`
}

Attributes:

  • Message

func NewHelloValues

func NewHelloValues() *HelloValues

func (*HelloValues) Equals added in v0.5.0

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

func (*HelloValues) GetMessage

func (p *HelloValues) GetMessage() string

func (*HelloValues) Read

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

func (*HelloValues) ReadField1

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

func (*HelloValues) String

func (p *HelloValues) String() string

func (*HelloValues) Validate added in v0.5.0

func (p *HelloValues) Validate() error

func (*HelloValues) Write

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

type MinionsService

type MinionsService interface {
	// Parameters:
	//  - Food
	Eat(ctx context.Context, food string) (_r *EatResponse, _err error)
}

type MinionsServiceClient

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

func NewMinionsServiceClient

func NewMinionsServiceClient(c thrift.TClient) *MinionsServiceClient

func NewMinionsServiceClientProtocol

func NewMinionsServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *MinionsServiceClient

func (*MinionsServiceClient) Client_ added in v0.4.0

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

func (*MinionsServiceClient) Eat

func (p *MinionsServiceClient) Eat(ctx context.Context, food string) (_r *EatResponse, _err error)

Parameters:

  • Food

func (*MinionsServiceClient) LastResponseMeta_ added in v0.5.0

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

func (*MinionsServiceClient) SetLastResponseMeta_ added in v0.5.0

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

type MinionsServiceEatArgs

type MinionsServiceEatArgs struct {
	Food string `thrift:"food,1" db:"food" json:"food"`
}

Attributes:

  • Food

func NewMinionsServiceEatArgs

func NewMinionsServiceEatArgs() *MinionsServiceEatArgs

func (*MinionsServiceEatArgs) GetFood

func (p *MinionsServiceEatArgs) GetFood() string

func (*MinionsServiceEatArgs) Read

func (*MinionsServiceEatArgs) ReadField1

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

func (*MinionsServiceEatArgs) String

func (p *MinionsServiceEatArgs) String() string

func (*MinionsServiceEatArgs) Write

type MinionsServiceEatResult

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

Attributes:

  • Success

func NewMinionsServiceEatResult

func NewMinionsServiceEatResult() *MinionsServiceEatResult

func (*MinionsServiceEatResult) GetSuccess

func (p *MinionsServiceEatResult) GetSuccess() *EatResponse

func (*MinionsServiceEatResult) IsSetSuccess

func (p *MinionsServiceEatResult) IsSetSuccess() bool

func (*MinionsServiceEatResult) Read

func (*MinionsServiceEatResult) ReadField0

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

func (*MinionsServiceEatResult) String

func (p *MinionsServiceEatResult) String() string

func (*MinionsServiceEatResult) Write

type MinionsServiceProcessor

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

func NewMinionsServiceProcessor

func NewMinionsServiceProcessor(handler MinionsService) *MinionsServiceProcessor

func (*MinionsServiceProcessor) AddToProcessorMap

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

func (*MinionsServiceProcessor) GetProcessorFunction

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

func (*MinionsServiceProcessor) Process

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

func (*MinionsServiceProcessor) ProcessorMap

type SayHelloResponse

type SayHelloResponse struct {
	Message string `thrift:"message,1" db:"message" json:"message"`
}

Attributes:

  • Message
var TestServiceSayHelloResult_Success_DEFAULT *SayHelloResponse

func NewSayHelloResponse

func NewSayHelloResponse() *SayHelloResponse

func (*SayHelloResponse) Equals added in v0.5.0

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

func (*SayHelloResponse) GetMessage

func (p *SayHelloResponse) GetMessage() string

func (*SayHelloResponse) Read

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

func (*SayHelloResponse) ReadField1

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

func (*SayHelloResponse) String

func (p *SayHelloResponse) String() string

func (*SayHelloResponse) Validate added in v0.5.0

func (p *SayHelloResponse) Validate() error

func (*SayHelloResponse) Write

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

type TestJsonRequest

type TestJsonRequest struct {
	StringValue string `thrift:"stringValue,1" db:"stringValue" json:"stringValue"`
	Int32Value  int32  `thrift:"int32Value,2" db:"int32Value" json:"int32Value"`
	BoolValue   bool   `thrift:"boolValue,3" db:"boolValue" json:"boolValue"`
}

Attributes:

  • StringValue
  • Int32Value
  • BoolValue
var TestServiceTestJsonArgs_Request_DEFAULT *TestJsonRequest

func NewTestJsonRequest

func NewTestJsonRequest() *TestJsonRequest

func (*TestJsonRequest) Equals added in v0.5.0

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

func (*TestJsonRequest) GetBoolValue

func (p *TestJsonRequest) GetBoolValue() bool

func (*TestJsonRequest) GetInt32Value

func (p *TestJsonRequest) GetInt32Value() int32

func (*TestJsonRequest) GetStringValue

func (p *TestJsonRequest) GetStringValue() string

func (*TestJsonRequest) Read

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

func (*TestJsonRequest) ReadField1

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

func (*TestJsonRequest) ReadField2

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

func (*TestJsonRequest) ReadField3

func (p *TestJsonRequest) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*TestJsonRequest) String

func (p *TestJsonRequest) String() string

func (*TestJsonRequest) Validate added in v0.5.0

func (p *TestJsonRequest) Validate() error

func (*TestJsonRequest) Write

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

type TestJsonResponse

type TestJsonResponse struct {
	Message string `thrift:"message,1" db:"message" json:"message"`
}

Attributes:

  • Message
var TestServiceTestJsonResult_Success_DEFAULT *TestJsonResponse

func NewTestJsonResponse

func NewTestJsonResponse() *TestJsonResponse

func (*TestJsonResponse) Equals added in v0.5.0

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

func (*TestJsonResponse) GetMessage

func (p *TestJsonResponse) GetMessage() string

func (*TestJsonResponse) Read

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

func (*TestJsonResponse) ReadField1

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

func (*TestJsonResponse) String

func (p *TestJsonResponse) String() string

func (*TestJsonResponse) Validate added in v0.5.0

func (p *TestJsonResponse) Validate() error

func (*TestJsonResponse) Write

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

type TestService

type TestService interface {
	// Parameters:
	//  - Values
	//  - YourName
	//  - Int64Value
	//  - BoolValue
	//  - Float64Value
	//  - Uint64Value
	//  - Int32Value
	//  - Int16Value
	//  - StringList
	//  - I32List
	//  - BoolList
	//  - DoubleList
	SayHello(ctx context.Context, values *CommonValues, yourName string, int64Value int64, boolValue bool, float64Value float64, uint64Value int64, int32Value int32, int16Value int16, stringList []string, i32List []int32, boolList []bool, doubleList []float64) (_r *SayHelloResponse, _err error)
	// Parameters:
	//  - Request
	TestJson(ctx context.Context, request *TestJsonRequest) (_r *TestJsonResponse, _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_ added in v0.4.0

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

func (*TestServiceClient) LastResponseMeta_ added in v0.5.0

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

func (*TestServiceClient) SayHello

func (p *TestServiceClient) SayHello(ctx context.Context, values *CommonValues, yourName string, int64Value int64, boolValue bool, float64Value float64, uint64Value int64, int32Value int32, int16Value int16, stringList []string, i32List []int32, boolList []bool, doubleList []float64) (_r *SayHelloResponse, _err error)

Parameters:

  • Values
  • YourName
  • Int64Value
  • BoolValue
  • Float64Value
  • Uint64Value
  • Int32Value
  • Int16Value
  • StringList
  • I32List
  • BoolList
  • DoubleList

func (*TestServiceClient) SetLastResponseMeta_ added in v0.5.0

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

func (*TestServiceClient) TestJson

func (p *TestServiceClient) TestJson(ctx context.Context, request *TestJsonRequest) (_r *TestJsonResponse, _err error)

Parameters:

  • Request

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 TestServiceSayHelloArgs

type TestServiceSayHelloArgs struct {
	Values       *CommonValues `thrift:"values,1" db:"values" json:"values"`
	YourName     string        `thrift:"yourName,2" db:"yourName" json:"yourName"`
	Int64Value   int64         `thrift:"int64Value,3" db:"int64Value" json:"int64Value"`
	BoolValue    bool          `thrift:"boolValue,4" db:"boolValue" json:"boolValue"`
	Float64Value float64       `thrift:"float64Value,5" db:"float64Value" json:"float64Value"`
	Uint64Value  int64         `thrift:"uint64Value,6" db:"uint64Value" json:"uint64Value"`
	Int32Value   int32         `thrift:"int32Value,7" db:"int32Value" json:"int32Value"`
	Int16Value   int16         `thrift:"int16Value,8" db:"int16Value" json:"int16Value"`
	StringList   []string      `thrift:"stringList,9" db:"stringList" json:"stringList"`
	I32List      []int32       `thrift:"i32List,10" db:"i32List" json:"i32List"`
	BoolList     []bool        `thrift:"boolList,11" db:"boolList" json:"boolList"`
	DoubleList   []float64     `thrift:"doubleList,12" db:"doubleList" json:"doubleList"`
}

Attributes:

  • Values
  • YourName
  • Int64Value
  • BoolValue
  • Float64Value
  • Uint64Value
  • Int32Value
  • Int16Value
  • StringList
  • I32List
  • BoolList
  • DoubleList

func NewTestServiceSayHelloArgs

func NewTestServiceSayHelloArgs() *TestServiceSayHelloArgs

func (*TestServiceSayHelloArgs) GetBoolList

func (p *TestServiceSayHelloArgs) GetBoolList() []bool

func (*TestServiceSayHelloArgs) GetBoolValue

func (p *TestServiceSayHelloArgs) GetBoolValue() bool

func (*TestServiceSayHelloArgs) GetDoubleList

func (p *TestServiceSayHelloArgs) GetDoubleList() []float64

func (*TestServiceSayHelloArgs) GetFloat64Value

func (p *TestServiceSayHelloArgs) GetFloat64Value() float64

func (*TestServiceSayHelloArgs) GetI32List

func (p *TestServiceSayHelloArgs) GetI32List() []int32

func (*TestServiceSayHelloArgs) GetInt16Value

func (p *TestServiceSayHelloArgs) GetInt16Value() int16

func (*TestServiceSayHelloArgs) GetInt32Value

func (p *TestServiceSayHelloArgs) GetInt32Value() int32

func (*TestServiceSayHelloArgs) GetInt64Value

func (p *TestServiceSayHelloArgs) GetInt64Value() int64

func (*TestServiceSayHelloArgs) GetStringList

func (p *TestServiceSayHelloArgs) GetStringList() []string

func (*TestServiceSayHelloArgs) GetUint64Value

func (p *TestServiceSayHelloArgs) GetUint64Value() int64

func (*TestServiceSayHelloArgs) GetValues

func (p *TestServiceSayHelloArgs) GetValues() *CommonValues

func (*TestServiceSayHelloArgs) GetYourName

func (p *TestServiceSayHelloArgs) GetYourName() string

func (*TestServiceSayHelloArgs) IsSetValues

func (p *TestServiceSayHelloArgs) IsSetValues() bool

func (*TestServiceSayHelloArgs) Read

func (*TestServiceSayHelloArgs) ReadField1

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

func (*TestServiceSayHelloArgs) ReadField10

func (p *TestServiceSayHelloArgs) ReadField10(ctx context.Context, iprot thrift.TProtocol) error

func (*TestServiceSayHelloArgs) ReadField11

func (p *TestServiceSayHelloArgs) ReadField11(ctx context.Context, iprot thrift.TProtocol) error

func (*TestServiceSayHelloArgs) ReadField12

func (p *TestServiceSayHelloArgs) ReadField12(ctx context.Context, iprot thrift.TProtocol) error

func (*TestServiceSayHelloArgs) ReadField2

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

func (*TestServiceSayHelloArgs) ReadField3

func (p *TestServiceSayHelloArgs) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*TestServiceSayHelloArgs) ReadField4

func (p *TestServiceSayHelloArgs) ReadField4(ctx context.Context, iprot thrift.TProtocol) error

func (*TestServiceSayHelloArgs) ReadField5

func (p *TestServiceSayHelloArgs) ReadField5(ctx context.Context, iprot thrift.TProtocol) error

func (*TestServiceSayHelloArgs) ReadField6

func (p *TestServiceSayHelloArgs) ReadField6(ctx context.Context, iprot thrift.TProtocol) error

func (*TestServiceSayHelloArgs) ReadField7

func (p *TestServiceSayHelloArgs) ReadField7(ctx context.Context, iprot thrift.TProtocol) error

func (*TestServiceSayHelloArgs) ReadField8

func (p *TestServiceSayHelloArgs) ReadField8(ctx context.Context, iprot thrift.TProtocol) error

func (*TestServiceSayHelloArgs) ReadField9

func (p *TestServiceSayHelloArgs) ReadField9(ctx context.Context, iprot thrift.TProtocol) error

func (*TestServiceSayHelloArgs) String

func (p *TestServiceSayHelloArgs) String() string

func (*TestServiceSayHelloArgs) Write

type TestServiceSayHelloResult

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

Attributes:

  • Success

func NewTestServiceSayHelloResult

func NewTestServiceSayHelloResult() *TestServiceSayHelloResult

func (*TestServiceSayHelloResult) GetSuccess

func (*TestServiceSayHelloResult) IsSetSuccess

func (p *TestServiceSayHelloResult) IsSetSuccess() bool

func (*TestServiceSayHelloResult) Read

func (*TestServiceSayHelloResult) ReadField0

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

func (*TestServiceSayHelloResult) String

func (p *TestServiceSayHelloResult) String() string

func (*TestServiceSayHelloResult) Write

type TestServiceTestJsonArgs

type TestServiceTestJsonArgs struct {
	Request *TestJsonRequest `thrift:"request,1" db:"request" json:"request"`
}

Attributes:

  • Request

func NewTestServiceTestJsonArgs

func NewTestServiceTestJsonArgs() *TestServiceTestJsonArgs

func (*TestServiceTestJsonArgs) GetRequest

func (p *TestServiceTestJsonArgs) GetRequest() *TestJsonRequest

func (*TestServiceTestJsonArgs) IsSetRequest

func (p *TestServiceTestJsonArgs) IsSetRequest() bool

func (*TestServiceTestJsonArgs) Read

func (*TestServiceTestJsonArgs) ReadField1

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

func (*TestServiceTestJsonArgs) String

func (p *TestServiceTestJsonArgs) String() string

func (*TestServiceTestJsonArgs) Write

type TestServiceTestJsonResult

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

Attributes:

  • Success

func NewTestServiceTestJsonResult

func NewTestServiceTestJsonResult() *TestServiceTestJsonResult

func (*TestServiceTestJsonResult) GetSuccess

func (*TestServiceTestJsonResult) IsSetSuccess

func (p *TestServiceTestJsonResult) IsSetSuccess() bool

func (*TestServiceTestJsonResult) Read

func (*TestServiceTestJsonResult) ReadField0

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

func (*TestServiceTestJsonResult) String

func (p *TestServiceTestJsonResult) String() string

func (*TestServiceTestJsonResult) Write

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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