myservice

package
v0.0.0-...-f698312 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT 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 MyException

type MyException struct {
}
var MyServiceGetResponseResult_Me_DEFAULT *MyException

func NewMyException

func NewMyException() *MyException

func (*MyException) Error

func (p *MyException) Error() string

func (*MyException) Read

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

func (*MyException) String

func (p *MyException) String() string

func (*MyException) Write

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

type MyRequest

type MyRequest struct {
	Req string `thrift:"req,1,required" db:"req" json:"req"`
}

Attributes:

  • Req
var MyServiceGetResponseArgs_Req_DEFAULT *MyRequest

func NewMyRequest

func NewMyRequest() *MyRequest

func (*MyRequest) GetReq

func (p *MyRequest) GetReq() string

func (*MyRequest) Read

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

func (*MyRequest) ReadField1

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

func (*MyRequest) String

func (p *MyRequest) String() string

func (*MyRequest) Write

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

type MyResponse

type MyResponse struct {
	Res string `thrift:"res,1,required" db:"res" json:"res"`
}

Attributes:

  • Res
var MyServiceGetResponseResult_Success_DEFAULT *MyResponse

func NewMyResponse

func NewMyResponse() *MyResponse

func (*MyResponse) GetRes

func (p *MyResponse) GetRes() string

func (*MyResponse) Read

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

func (*MyResponse) ReadField1

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

func (*MyResponse) String

func (p *MyResponse) String() string

func (*MyResponse) Write

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

type MyService

type MyService interface {
	Ping(ctx context.Context) (err error)
	// Parameters:
	//  - ID
	//  - Req
	GetResponse(ctx context.Context, id UUID, req *MyRequest) (r *MyResponse, err error)
}

type MyServiceClient

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

func NewMyServiceClient

func NewMyServiceClient(c thrift.TClient) *MyServiceClient

func NewMyServiceClientProtocol

func NewMyServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *MyServiceClient

func (*MyServiceClient) Client_

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

func (*MyServiceClient) GetResponse

func (p *MyServiceClient) GetResponse(ctx context.Context, id UUID, req *MyRequest) (r *MyResponse, err error)

Parameters:

  • ID
  • Req

func (*MyServiceClient) Ping

func (p *MyServiceClient) Ping(ctx context.Context) (err error)

type MyServiceGetResponseArgs

type MyServiceGetResponseArgs struct {
	ID  UUID       `thrift:"id,1" db:"id" json:"id"`
	Req *MyRequest `thrift:"req,2" db:"req" json:"req"`
}

Attributes:

  • ID
  • Req

func NewMyServiceGetResponseArgs

func NewMyServiceGetResponseArgs() *MyServiceGetResponseArgs

func (*MyServiceGetResponseArgs) GetID

func (p *MyServiceGetResponseArgs) GetID() UUID

func (*MyServiceGetResponseArgs) GetReq

func (p *MyServiceGetResponseArgs) GetReq() *MyRequest

func (*MyServiceGetResponseArgs) IsSetReq

func (p *MyServiceGetResponseArgs) IsSetReq() bool

func (*MyServiceGetResponseArgs) Read

func (*MyServiceGetResponseArgs) ReadField1

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

func (*MyServiceGetResponseArgs) ReadField2

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

func (*MyServiceGetResponseArgs) String

func (p *MyServiceGetResponseArgs) String() string

func (*MyServiceGetResponseArgs) Write

type MyServiceGetResponseResult

type MyServiceGetResponseResult struct {
	Success *MyResponse  `thrift:"success,0" db:"success" json:"success,omitempty"`
	Me      *MyException `thrift:"me,1" db:"me" json:"me,omitempty"`
}

Attributes:

  • Success
  • Me

func NewMyServiceGetResponseResult

func NewMyServiceGetResponseResult() *MyServiceGetResponseResult

func (*MyServiceGetResponseResult) GetMe

func (*MyServiceGetResponseResult) GetSuccess

func (p *MyServiceGetResponseResult) GetSuccess() *MyResponse

func (*MyServiceGetResponseResult) IsSetMe

func (p *MyServiceGetResponseResult) IsSetMe() bool

func (*MyServiceGetResponseResult) IsSetSuccess

func (p *MyServiceGetResponseResult) IsSetSuccess() bool

func (*MyServiceGetResponseResult) Read

func (*MyServiceGetResponseResult) ReadField0

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

func (*MyServiceGetResponseResult) ReadField1

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

func (*MyServiceGetResponseResult) String

func (p *MyServiceGetResponseResult) String() string

func (*MyServiceGetResponseResult) Write

type MyServicePingArgs

type MyServicePingArgs struct {
}

func NewMyServicePingArgs

func NewMyServicePingArgs() *MyServicePingArgs

func (*MyServicePingArgs) Read

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

func (*MyServicePingArgs) String

func (p *MyServicePingArgs) String() string

func (*MyServicePingArgs) Write

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

type MyServicePingResult

type MyServicePingResult struct {
}

func NewMyServicePingResult

func NewMyServicePingResult() *MyServicePingResult

func (*MyServicePingResult) Read

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

func (*MyServicePingResult) String

func (p *MyServicePingResult) String() string

func (*MyServicePingResult) Write

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

type MyServiceProcessor

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

func NewMyServiceProcessor

func NewMyServiceProcessor(handler MyService) *MyServiceProcessor

func (*MyServiceProcessor) AddToProcessorMap

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

func (*MyServiceProcessor) GetProcessorFunction

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

func (*MyServiceProcessor) Process

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

func (*MyServiceProcessor) ProcessorMap

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

type UUID

type UUID string

func UUIDPtr

func UUIDPtr(v UUID) *UUID

Jump to

Keyboard shortcuts

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