fb303

package
v0.0.0-...-bb4390b Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FacebookServiceAliveSinceResult_Success_DEFAULT int64
View Source
var FacebookServiceGetCounterResult_Success_DEFAULT int64
View Source
var FacebookServiceGetCountersResult_Success_DEFAULT map[string]int64
View Source
var FacebookServiceGetCpuProfileResult_Success_DEFAULT string
View Source
var FacebookServiceGetNameResult_Success_DEFAULT string
View Source
var FacebookServiceGetOptionResult_Success_DEFAULT string
View Source
var FacebookServiceGetOptionsResult_Success_DEFAULT map[string]string
View Source
var FacebookServiceGetStatusDetailsResult_Success_DEFAULT string
View Source
var FacebookServiceGetVersionResult_Success_DEFAULT string
View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type FacebookService

type FacebookService interface {

	// Returns a descriptive name of the service
	GetName(ctx context.Context) (r string, err error)
	// Returns the version of the service
	GetVersion(ctx context.Context) (r string, err error)
	// Gets the status of this service
	GetStatus(ctx context.Context) (r FbStatus, err error)
	// User friendly description of status, such as why the service is in
	// the dead or warning state, or what is being started or stopped.
	GetStatusDetails(ctx context.Context) (r string, err error)
	// Gets the counters for this service
	GetCounters(ctx context.Context) (r map[string]int64, err error)
	// Gets the value of a single counter
	//
	// Parameters:
	//  - Key
	GetCounter(ctx context.Context, key string) (r int64, err error)
	// Sets an option
	//
	// Parameters:
	//  - Key
	//  - Value
	SetOption(ctx context.Context, key string, value string) (err error)
	// Gets an option
	//
	// Parameters:
	//  - Key
	GetOption(ctx context.Context, key string) (r string, err error)
	// Gets all options
	GetOptions(ctx context.Context) (r map[string]string, err error)
	// Returns a CPU profile over the given time interval (client and server
	// must agree on the profile format).
	//
	// Parameters:
	//  - ProfileDurationInSec
	GetCpuProfile(ctx context.Context, profileDurationInSec int32) (r string, err error)
	// Returns the unix time that the server has been running since
	AliveSince(ctx context.Context) (r int64, err error)
	// Tell the server to reload its configuration, reopen log files, etc
	Reinitialize(ctx context.Context) (err error)
	// Suggest a shutdown to the server
	Shutdown(ctx context.Context) (err error)
}

type FacebookServiceAliveSinceArgs

type FacebookServiceAliveSinceArgs struct {
}

func NewFacebookServiceAliveSinceArgs

func NewFacebookServiceAliveSinceArgs() *FacebookServiceAliveSinceArgs

func (*FacebookServiceAliveSinceArgs) Read

func (*FacebookServiceAliveSinceArgs) String

func (*FacebookServiceAliveSinceArgs) Write

type FacebookServiceAliveSinceResult

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

Attributes:

  • Success

func NewFacebookServiceAliveSinceResult

func NewFacebookServiceAliveSinceResult() *FacebookServiceAliveSinceResult

func (*FacebookServiceAliveSinceResult) GetSuccess

func (p *FacebookServiceAliveSinceResult) GetSuccess() int64

func (*FacebookServiceAliveSinceResult) IsSetSuccess

func (p *FacebookServiceAliveSinceResult) IsSetSuccess() bool

func (*FacebookServiceAliveSinceResult) Read

func (*FacebookServiceAliveSinceResult) ReadField0

func (*FacebookServiceAliveSinceResult) String

func (*FacebookServiceAliveSinceResult) Write

type FacebookServiceClient

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

Standard base service

func NewFacebookServiceClient

func NewFacebookServiceClient(c thrift.TClient) *FacebookServiceClient

func NewFacebookServiceClientProtocol

func NewFacebookServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *FacebookServiceClient

func (*FacebookServiceClient) AliveSince

func (p *FacebookServiceClient) AliveSince(ctx context.Context) (r int64, err error)

Returns the unix time that the server has been running since

func (*FacebookServiceClient) Client_

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

func (*FacebookServiceClient) GetCounter

func (p *FacebookServiceClient) GetCounter(ctx context.Context, key string) (r int64, err error)

Gets the value of a single counter

Parameters:

  • Key

func (*FacebookServiceClient) GetCounters

func (p *FacebookServiceClient) GetCounters(ctx context.Context) (r map[string]int64, err error)

Gets the counters for this service

func (*FacebookServiceClient) GetCpuProfile

func (p *FacebookServiceClient) GetCpuProfile(ctx context.Context, profileDurationInSec int32) (r string, err error)

Returns a CPU profile over the given time interval (client and server must agree on the profile format).

Parameters:

  • ProfileDurationInSec

func (*FacebookServiceClient) GetName

func (p *FacebookServiceClient) GetName(ctx context.Context) (r string, err error)

Returns a descriptive name of the service

func (*FacebookServiceClient) GetOption

func (p *FacebookServiceClient) GetOption(ctx context.Context, key string) (r string, err error)

Gets an option

Parameters:

  • Key

func (*FacebookServiceClient) GetOptions

func (p *FacebookServiceClient) GetOptions(ctx context.Context) (r map[string]string, err error)

Gets all options

func (*FacebookServiceClient) GetStatus

func (p *FacebookServiceClient) GetStatus(ctx context.Context) (r FbStatus, err error)

Gets the status of this service

func (*FacebookServiceClient) GetStatusDetails

func (p *FacebookServiceClient) GetStatusDetails(ctx context.Context) (r string, err error)

User friendly description of status, such as why the service is in the dead or warning state, or what is being started or stopped.

func (*FacebookServiceClient) GetVersion

func (p *FacebookServiceClient) GetVersion(ctx context.Context) (r string, err error)

Returns the version of the service

func (*FacebookServiceClient) Reinitialize

func (p *FacebookServiceClient) Reinitialize(ctx context.Context) (err error)

Tell the server to reload its configuration, reopen log files, etc

func (*FacebookServiceClient) SetOption

func (p *FacebookServiceClient) SetOption(ctx context.Context, key string, value string) (err error)

Sets an option

Parameters:

  • Key
  • Value

func (*FacebookServiceClient) Shutdown

func (p *FacebookServiceClient) Shutdown(ctx context.Context) (err error)

Suggest a shutdown to the server

type FacebookServiceGetCounterArgs

type FacebookServiceGetCounterArgs struct {
	Key string `thrift:"key,1" db:"key" json:"key"`
}

Attributes:

  • Key

func NewFacebookServiceGetCounterArgs

func NewFacebookServiceGetCounterArgs() *FacebookServiceGetCounterArgs

func (*FacebookServiceGetCounterArgs) GetKey

func (*FacebookServiceGetCounterArgs) Read

func (*FacebookServiceGetCounterArgs) ReadField1

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

func (*FacebookServiceGetCounterArgs) String

func (*FacebookServiceGetCounterArgs) Write

type FacebookServiceGetCounterResult

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

Attributes:

  • Success

func NewFacebookServiceGetCounterResult

func NewFacebookServiceGetCounterResult() *FacebookServiceGetCounterResult

func (*FacebookServiceGetCounterResult) GetSuccess

func (p *FacebookServiceGetCounterResult) GetSuccess() int64

func (*FacebookServiceGetCounterResult) IsSetSuccess

func (p *FacebookServiceGetCounterResult) IsSetSuccess() bool

func (*FacebookServiceGetCounterResult) Read

func (*FacebookServiceGetCounterResult) ReadField0

func (*FacebookServiceGetCounterResult) String

func (*FacebookServiceGetCounterResult) Write

type FacebookServiceGetCountersArgs

type FacebookServiceGetCountersArgs struct {
}

func NewFacebookServiceGetCountersArgs

func NewFacebookServiceGetCountersArgs() *FacebookServiceGetCountersArgs

func (*FacebookServiceGetCountersArgs) Read

func (*FacebookServiceGetCountersArgs) String

func (*FacebookServiceGetCountersArgs) Write

type FacebookServiceGetCountersResult

type FacebookServiceGetCountersResult struct {
	Success map[string]int64 `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewFacebookServiceGetCountersResult

func NewFacebookServiceGetCountersResult() *FacebookServiceGetCountersResult

func (*FacebookServiceGetCountersResult) GetSuccess

func (p *FacebookServiceGetCountersResult) GetSuccess() map[string]int64

func (*FacebookServiceGetCountersResult) IsSetSuccess

func (p *FacebookServiceGetCountersResult) IsSetSuccess() bool

func (*FacebookServiceGetCountersResult) Read

func (*FacebookServiceGetCountersResult) ReadField0

func (*FacebookServiceGetCountersResult) String

func (*FacebookServiceGetCountersResult) Write

type FacebookServiceGetCpuProfileArgs

type FacebookServiceGetCpuProfileArgs struct {
	ProfileDurationInSec int32 `thrift:"profileDurationInSec,1" db:"profileDurationInSec" json:"profileDurationInSec"`
}

Attributes:

  • ProfileDurationInSec

func NewFacebookServiceGetCpuProfileArgs

func NewFacebookServiceGetCpuProfileArgs() *FacebookServiceGetCpuProfileArgs

func (*FacebookServiceGetCpuProfileArgs) GetProfileDurationInSec

func (p *FacebookServiceGetCpuProfileArgs) GetProfileDurationInSec() int32

func (*FacebookServiceGetCpuProfileArgs) Read

func (*FacebookServiceGetCpuProfileArgs) ReadField1

func (*FacebookServiceGetCpuProfileArgs) String

func (*FacebookServiceGetCpuProfileArgs) Write

type FacebookServiceGetCpuProfileResult

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

Attributes:

  • Success

func NewFacebookServiceGetCpuProfileResult

func NewFacebookServiceGetCpuProfileResult() *FacebookServiceGetCpuProfileResult

func (*FacebookServiceGetCpuProfileResult) GetSuccess

func (*FacebookServiceGetCpuProfileResult) IsSetSuccess

func (p *FacebookServiceGetCpuProfileResult) IsSetSuccess() bool

func (*FacebookServiceGetCpuProfileResult) Read

func (*FacebookServiceGetCpuProfileResult) ReadField0

func (*FacebookServiceGetCpuProfileResult) String

func (*FacebookServiceGetCpuProfileResult) Write

type FacebookServiceGetNameArgs

type FacebookServiceGetNameArgs struct {
}

func NewFacebookServiceGetNameArgs

func NewFacebookServiceGetNameArgs() *FacebookServiceGetNameArgs

func (*FacebookServiceGetNameArgs) Read

func (*FacebookServiceGetNameArgs) String

func (p *FacebookServiceGetNameArgs) String() string

func (*FacebookServiceGetNameArgs) Write

type FacebookServiceGetNameResult

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

Attributes:

  • Success

func NewFacebookServiceGetNameResult

func NewFacebookServiceGetNameResult() *FacebookServiceGetNameResult

func (*FacebookServiceGetNameResult) GetSuccess

func (p *FacebookServiceGetNameResult) GetSuccess() string

func (*FacebookServiceGetNameResult) IsSetSuccess

func (p *FacebookServiceGetNameResult) IsSetSuccess() bool

func (*FacebookServiceGetNameResult) Read

func (*FacebookServiceGetNameResult) ReadField0

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

func (*FacebookServiceGetNameResult) String

func (*FacebookServiceGetNameResult) Write

type FacebookServiceGetOptionArgs

type FacebookServiceGetOptionArgs struct {
	Key string `thrift:"key,1" db:"key" json:"key"`
}

Attributes:

  • Key

func NewFacebookServiceGetOptionArgs

func NewFacebookServiceGetOptionArgs() *FacebookServiceGetOptionArgs

func (*FacebookServiceGetOptionArgs) GetKey

func (*FacebookServiceGetOptionArgs) Read

func (*FacebookServiceGetOptionArgs) ReadField1

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

func (*FacebookServiceGetOptionArgs) String

func (*FacebookServiceGetOptionArgs) Write

type FacebookServiceGetOptionResult

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

Attributes:

  • Success

func NewFacebookServiceGetOptionResult

func NewFacebookServiceGetOptionResult() *FacebookServiceGetOptionResult

func (*FacebookServiceGetOptionResult) GetSuccess

func (p *FacebookServiceGetOptionResult) GetSuccess() string

func (*FacebookServiceGetOptionResult) IsSetSuccess

func (p *FacebookServiceGetOptionResult) IsSetSuccess() bool

func (*FacebookServiceGetOptionResult) Read

func (*FacebookServiceGetOptionResult) ReadField0

func (*FacebookServiceGetOptionResult) String

func (*FacebookServiceGetOptionResult) Write

type FacebookServiceGetOptionsArgs

type FacebookServiceGetOptionsArgs struct {
}

func NewFacebookServiceGetOptionsArgs

func NewFacebookServiceGetOptionsArgs() *FacebookServiceGetOptionsArgs

func (*FacebookServiceGetOptionsArgs) Read

func (*FacebookServiceGetOptionsArgs) String

func (*FacebookServiceGetOptionsArgs) Write

type FacebookServiceGetOptionsResult

type FacebookServiceGetOptionsResult struct {
	Success map[string]string `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewFacebookServiceGetOptionsResult

func NewFacebookServiceGetOptionsResult() *FacebookServiceGetOptionsResult

func (*FacebookServiceGetOptionsResult) GetSuccess

func (p *FacebookServiceGetOptionsResult) GetSuccess() map[string]string

func (*FacebookServiceGetOptionsResult) IsSetSuccess

func (p *FacebookServiceGetOptionsResult) IsSetSuccess() bool

func (*FacebookServiceGetOptionsResult) Read

func (*FacebookServiceGetOptionsResult) ReadField0

func (*FacebookServiceGetOptionsResult) String

func (*FacebookServiceGetOptionsResult) Write

type FacebookServiceGetStatusArgs

type FacebookServiceGetStatusArgs struct {
}

func NewFacebookServiceGetStatusArgs

func NewFacebookServiceGetStatusArgs() *FacebookServiceGetStatusArgs

func (*FacebookServiceGetStatusArgs) Read

func (*FacebookServiceGetStatusArgs) String

func (*FacebookServiceGetStatusArgs) Write

type FacebookServiceGetStatusDetailsArgs

type FacebookServiceGetStatusDetailsArgs struct {
}

func NewFacebookServiceGetStatusDetailsArgs

func NewFacebookServiceGetStatusDetailsArgs() *FacebookServiceGetStatusDetailsArgs

func (*FacebookServiceGetStatusDetailsArgs) Read

func (*FacebookServiceGetStatusDetailsArgs) String

func (*FacebookServiceGetStatusDetailsArgs) Write

type FacebookServiceGetStatusDetailsResult

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

Attributes:

  • Success

func NewFacebookServiceGetStatusDetailsResult

func NewFacebookServiceGetStatusDetailsResult() *FacebookServiceGetStatusDetailsResult

func (*FacebookServiceGetStatusDetailsResult) GetSuccess

func (*FacebookServiceGetStatusDetailsResult) IsSetSuccess

func (p *FacebookServiceGetStatusDetailsResult) IsSetSuccess() bool

func (*FacebookServiceGetStatusDetailsResult) Read

func (*FacebookServiceGetStatusDetailsResult) ReadField0

func (*FacebookServiceGetStatusDetailsResult) String

func (*FacebookServiceGetStatusDetailsResult) Write

type FacebookServiceGetStatusResult

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

Attributes:

  • Success

func NewFacebookServiceGetStatusResult

func NewFacebookServiceGetStatusResult() *FacebookServiceGetStatusResult

func (*FacebookServiceGetStatusResult) GetSuccess

func (p *FacebookServiceGetStatusResult) GetSuccess() FbStatus

func (*FacebookServiceGetStatusResult) IsSetSuccess

func (p *FacebookServiceGetStatusResult) IsSetSuccess() bool

func (*FacebookServiceGetStatusResult) Read

func (*FacebookServiceGetStatusResult) ReadField0

func (*FacebookServiceGetStatusResult) String

func (*FacebookServiceGetStatusResult) Write

type FacebookServiceGetVersionArgs

type FacebookServiceGetVersionArgs struct {
}

func NewFacebookServiceGetVersionArgs

func NewFacebookServiceGetVersionArgs() *FacebookServiceGetVersionArgs

func (*FacebookServiceGetVersionArgs) Read

func (*FacebookServiceGetVersionArgs) String

func (*FacebookServiceGetVersionArgs) Write

type FacebookServiceGetVersionResult

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

Attributes:

  • Success

func NewFacebookServiceGetVersionResult

func NewFacebookServiceGetVersionResult() *FacebookServiceGetVersionResult

func (*FacebookServiceGetVersionResult) GetSuccess

func (p *FacebookServiceGetVersionResult) GetSuccess() string

func (*FacebookServiceGetVersionResult) IsSetSuccess

func (p *FacebookServiceGetVersionResult) IsSetSuccess() bool

func (*FacebookServiceGetVersionResult) Read

func (*FacebookServiceGetVersionResult) ReadField0

func (*FacebookServiceGetVersionResult) String

func (*FacebookServiceGetVersionResult) Write

type FacebookServiceProcessor

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

func NewFacebookServiceProcessor

func NewFacebookServiceProcessor(handler FacebookService) *FacebookServiceProcessor

func (*FacebookServiceProcessor) AddToProcessorMap

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

func (*FacebookServiceProcessor) GetProcessorFunction

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

func (*FacebookServiceProcessor) Process

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

func (*FacebookServiceProcessor) ProcessorMap

type FacebookServiceReinitializeArgs

type FacebookServiceReinitializeArgs struct {
}

func NewFacebookServiceReinitializeArgs

func NewFacebookServiceReinitializeArgs() *FacebookServiceReinitializeArgs

func (*FacebookServiceReinitializeArgs) Read

func (*FacebookServiceReinitializeArgs) String

func (*FacebookServiceReinitializeArgs) Write

type FacebookServiceSetOptionArgs

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

Attributes:

  • Key
  • Value

func NewFacebookServiceSetOptionArgs

func NewFacebookServiceSetOptionArgs() *FacebookServiceSetOptionArgs

func (*FacebookServiceSetOptionArgs) GetKey

func (*FacebookServiceSetOptionArgs) GetValue

func (p *FacebookServiceSetOptionArgs) GetValue() string

func (*FacebookServiceSetOptionArgs) Read

func (*FacebookServiceSetOptionArgs) ReadField1

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

func (*FacebookServiceSetOptionArgs) ReadField2

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

func (*FacebookServiceSetOptionArgs) String

func (*FacebookServiceSetOptionArgs) Write

type FacebookServiceSetOptionResult

type FacebookServiceSetOptionResult struct {
}

func NewFacebookServiceSetOptionResult

func NewFacebookServiceSetOptionResult() *FacebookServiceSetOptionResult

func (*FacebookServiceSetOptionResult) Read

func (*FacebookServiceSetOptionResult) String

func (*FacebookServiceSetOptionResult) Write

type FacebookServiceShutdownArgs

type FacebookServiceShutdownArgs struct {
}

func NewFacebookServiceShutdownArgs

func NewFacebookServiceShutdownArgs() *FacebookServiceShutdownArgs

func (*FacebookServiceShutdownArgs) Read

func (*FacebookServiceShutdownArgs) String

func (p *FacebookServiceShutdownArgs) String() string

func (*FacebookServiceShutdownArgs) Write

type FbStatus

type FbStatus int64

Common status reporting mechanism across all services

const (
	FbStatus_DEAD     FbStatus = 0
	FbStatus_STARTING FbStatus = 1
	FbStatus_ALIVE    FbStatus = 2
	FbStatus_STOPPING FbStatus = 3
	FbStatus_STOPPED  FbStatus = 4
	FbStatus_WARNING  FbStatus = 5
)
var FacebookServiceGetStatusResult_Success_DEFAULT FbStatus

func FbStatusFromString

func FbStatusFromString(s string) (FbStatus, error)

func FbStatusPtr

func FbStatusPtr(v FbStatus) *FbStatus

func (FbStatus) MarshalText

func (p FbStatus) MarshalText() ([]byte, error)

func (*FbStatus) Scan

func (p *FbStatus) Scan(value interface{}) error

func (FbStatus) String

func (p FbStatus) String() string

func (*FbStatus) UnmarshalText

func (p *FbStatus) UnmarshalText(text []byte) error

func (*FbStatus) Value

func (p *FbStatus) Value() (driver.Value, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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