example

package
v0.0.0-...-0251046 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int
View Source
var Person_Age_DEFAULT int32

Functions

This section is empty.

Types

type ExampleService

type ExampleService interface {
	// Parameters:
	//  - Name
	//
	SayHello(ctx context.Context, name string) (_err error)
}

type ExampleServiceClient

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

func NewExampleServiceClient

func NewExampleServiceClient(c thrift.TClient) *ExampleServiceClient

func NewExampleServiceClientProtocol

func NewExampleServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ExampleServiceClient

func (*ExampleServiceClient) Client_

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

func (*ExampleServiceClient) LastResponseMeta_

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

func (*ExampleServiceClient) SayHello

func (p *ExampleServiceClient) SayHello(ctx context.Context, name string) (_err error)

Parameters:

  • Name

func (*ExampleServiceClient) SetLastResponseMeta_

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

type ExampleServiceProcessor

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

func NewExampleServiceProcessor

func NewExampleServiceProcessor(handler ExampleService) *ExampleServiceProcessor

func (*ExampleServiceProcessor) AddToProcessorMap

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

func (*ExampleServiceProcessor) GetProcessorFunction

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

func (*ExampleServiceProcessor) Process

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

func (*ExampleServiceProcessor) ProcessorMap

type ExampleServiceSayHelloArgs

type ExampleServiceSayHelloArgs struct {
	Name string `thrift:"name,1" db:"name" json:"name"`
}

Attributes:

  • Name

func NewExampleServiceSayHelloArgs

func NewExampleServiceSayHelloArgs() *ExampleServiceSayHelloArgs

func (*ExampleServiceSayHelloArgs) GetName

func (p *ExampleServiceSayHelloArgs) GetName() string

func (*ExampleServiceSayHelloArgs) LogValue

func (p *ExampleServiceSayHelloArgs) LogValue() slog.Value

func (*ExampleServiceSayHelloArgs) Read

func (*ExampleServiceSayHelloArgs) ReadField1

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

func (*ExampleServiceSayHelloArgs) String

func (p *ExampleServiceSayHelloArgs) String() string

func (*ExampleServiceSayHelloArgs) Write

type ExampleServiceSayHelloResult

type ExampleServiceSayHelloResult struct {
}

func NewExampleServiceSayHelloResult

func NewExampleServiceSayHelloResult() *ExampleServiceSayHelloResult

func (*ExampleServiceSayHelloResult) LogValue

func (p *ExampleServiceSayHelloResult) LogValue() slog.Value

func (*ExampleServiceSayHelloResult) Read

func (*ExampleServiceSayHelloResult) String

func (*ExampleServiceSayHelloResult) Write

type Person

type Person struct {
	Name string `thrift:"name,1,required" db:"name" json:"name"`
	Age  *int32 `thrift:"age,2" db:"age" json:"age,omitempty"`
}

Attributes:

  • Name
  • Age

func NewPerson

func NewPerson() *Person

func (*Person) Equals

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

func (*Person) GetAge

func (p *Person) GetAge() int32

func (*Person) GetName

func (p *Person) GetName() string

func (*Person) IsSetAge

func (p *Person) IsSetAge() bool

func (*Person) LogValue

func (p *Person) LogValue() slog.Value

func (*Person) Read

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

func (*Person) ReadField1

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

func (*Person) ReadField2

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

func (*Person) String

func (p *Person) String() string

func (*Person) Validate

func (p *Person) Validate() error

func (*Person) Write

func (p *Person) Write(ctx context.Context, 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