shared

package
v0.0.0-...-63b2ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: GPL-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 SharedService

type SharedService interface {
	// Parameters:
	//  - Key
	GetStruct(ctx context.Context, key int32) (r *SharedStruct, err error)
}

type SharedServiceClient

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

func NewSharedServiceClient

func NewSharedServiceClient(c thrift.TClient) *SharedServiceClient

func NewSharedServiceClientFactory deprecated

func NewSharedServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *SharedServiceClient

Deprecated: Use NewSharedService instead

func NewSharedServiceClientProtocol deprecated

func NewSharedServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *SharedServiceClient

Deprecated: Use NewSharedService instead

func (*SharedServiceClient) GetStruct

func (p *SharedServiceClient) GetStruct(ctx context.Context, key int32) (r *SharedStruct, err error)

Parameters:

  • Key

type SharedServiceGetStructArgs

type SharedServiceGetStructArgs struct {
	Key int32 `thrift:"key,1" db:"key" json:"key"`
}

Attributes:

  • Key

func NewSharedServiceGetStructArgs

func NewSharedServiceGetStructArgs() *SharedServiceGetStructArgs

func (*SharedServiceGetStructArgs) GetKey

func (p *SharedServiceGetStructArgs) GetKey() int32

func (*SharedServiceGetStructArgs) Read

func (*SharedServiceGetStructArgs) ReadField1

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

func (*SharedServiceGetStructArgs) String

func (p *SharedServiceGetStructArgs) String() string

func (*SharedServiceGetStructArgs) Write

type SharedServiceGetStructResult

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

Attributes:

  • Success

func NewSharedServiceGetStructResult

func NewSharedServiceGetStructResult() *SharedServiceGetStructResult

func (*SharedServiceGetStructResult) GetSuccess

func (p *SharedServiceGetStructResult) GetSuccess() *SharedStruct

func (*SharedServiceGetStructResult) IsSetSuccess

func (p *SharedServiceGetStructResult) IsSetSuccess() bool

func (*SharedServiceGetStructResult) Read

func (*SharedServiceGetStructResult) ReadField0

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

func (*SharedServiceGetStructResult) String

func (*SharedServiceGetStructResult) Write

type SharedServiceProcessor

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

func NewSharedServiceProcessor

func NewSharedServiceProcessor(handler SharedService) *SharedServiceProcessor

func (*SharedServiceProcessor) AddToProcessorMap

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

func (*SharedServiceProcessor) GetProcessorFunction

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

func (*SharedServiceProcessor) Process

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

func (*SharedServiceProcessor) ProcessorMap

type SharedStruct

type SharedStruct struct {
	Key   int32  `thrift:"key,1" db:"key" json:"key"`
	Value string `thrift:"value,2" db:"value" json:"value"`
}

Attributes:

  • Key
  • Value
var SharedServiceGetStructResult_Success_DEFAULT *SharedStruct

func NewSharedStruct

func NewSharedStruct() *SharedStruct

func (*SharedStruct) GetKey

func (p *SharedStruct) GetKey() int32

func (*SharedStruct) GetValue

func (p *SharedStruct) GetValue() string

func (*SharedStruct) Read

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

func (*SharedStruct) ReadField1

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

func (*SharedStruct) ReadField2

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

func (*SharedStruct) String

func (p *SharedStruct) String() string

func (*SharedStruct) Write

func (p *SharedStruct) 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