hearbeat

package
v0.0.0-...-a47f05f Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int
View Source
var HeartbeatServiceHeartbeatPackageResult_Success_DEFAULT string

Functions

This section is empty.

Types

type AgentInfo

type AgentInfo struct {
	ID      string `thrift:"id,1" json:"id"`
	IP      string `thrift:"ip,2" json:"ip"`
	Version string `thrift:"version,3" json:"version"`
	Apps    string `thrift:"apps,4" json:"apps"`
}

Attributes:

  • ID
  • IP
  • Version
  • Apps
var HeartbeatServiceHeartbeatPackageArgs_Info_DEFAULT *AgentInfo

func NewAgentInfo

func NewAgentInfo() *AgentInfo

func (*AgentInfo) GetApps

func (p *AgentInfo) GetApps() string

func (*AgentInfo) GetID

func (p *AgentInfo) GetID() string

func (*AgentInfo) GetIP

func (p *AgentInfo) GetIP() string

func (*AgentInfo) GetVersion

func (p *AgentInfo) GetVersion() string

func (*AgentInfo) Read

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

func (*AgentInfo) String

func (p *AgentInfo) String() string

func (*AgentInfo) Write

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

type HeartbeatService

type HeartbeatService interface {
	// Parameters:
	//  - Info
	HeartbeatPackage(info *AgentInfo) (r string, err error)
}

type HeartbeatServiceClient

type HeartbeatServiceClient struct {
	Transport       thrift.TTransport
	ProtocolFactory thrift.TProtocolFactory
	InputProtocol   thrift.TProtocol
	OutputProtocol  thrift.TProtocol
	SeqId           int32
}

func NewHeartbeatServiceClientFactory

func NewHeartbeatServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *HeartbeatServiceClient

func NewHeartbeatServiceClientProtocol

func NewHeartbeatServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *HeartbeatServiceClient

func (*HeartbeatServiceClient) HeartbeatPackage

func (p *HeartbeatServiceClient) HeartbeatPackage(info *AgentInfo) (r string, err error)

Parameters:

  • Info

type HeartbeatServiceHeartbeatPackageArgs

type HeartbeatServiceHeartbeatPackageArgs struct {
	Info *AgentInfo `thrift:"info,1" json:"info"`
}

Attributes:

  • Info

func NewHeartbeatServiceHeartbeatPackageArgs

func NewHeartbeatServiceHeartbeatPackageArgs() *HeartbeatServiceHeartbeatPackageArgs

func (*HeartbeatServiceHeartbeatPackageArgs) GetInfo

func (*HeartbeatServiceHeartbeatPackageArgs) IsSetInfo

func (*HeartbeatServiceHeartbeatPackageArgs) Read

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

func (*HeartbeatServiceHeartbeatPackageArgs) String

func (*HeartbeatServiceHeartbeatPackageArgs) Write

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

type HeartbeatServiceHeartbeatPackageResult

type HeartbeatServiceHeartbeatPackageResult struct {
	Success *string `thrift:"success,0" json:"success,omitempty"`
}

Attributes:

  • Success

func NewHeartbeatServiceHeartbeatPackageResult

func NewHeartbeatServiceHeartbeatPackageResult() *HeartbeatServiceHeartbeatPackageResult

func (*HeartbeatServiceHeartbeatPackageResult) GetSuccess

func (*HeartbeatServiceHeartbeatPackageResult) IsSetSuccess

func (p *HeartbeatServiceHeartbeatPackageResult) IsSetSuccess() bool

func (*HeartbeatServiceHeartbeatPackageResult) Read

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

func (*HeartbeatServiceHeartbeatPackageResult) String

func (*HeartbeatServiceHeartbeatPackageResult) Write

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

type HeartbeatServiceProcessor

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

func NewHeartbeatServiceProcessor

func NewHeartbeatServiceProcessor(handler HeartbeatService) *HeartbeatServiceProcessor

func (*HeartbeatServiceProcessor) AddToProcessorMap

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

func (*HeartbeatServiceProcessor) GetProcessorFunction

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

func (*HeartbeatServiceProcessor) Process

func (p *HeartbeatServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*HeartbeatServiceProcessor) ProcessorMap

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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