Documentation ¶
Index ¶
- Variables
- type AliveSinceArgs
- type AliveSinceResult
- type FacebookService
- type FacebookServiceClient
- func (p *FacebookServiceClient) AliveSince() (r int64, err error)
- func (p *FacebookServiceClient) GetCounter(key string) (r int64, err error)
- func (p *FacebookServiceClient) GetCounters() (r map[string]int64, err error)
- func (p *FacebookServiceClient) GetCpuProfile(profileDurationInSec int32) (r string, err error)
- func (p *FacebookServiceClient) GetName() (r string, err error)
- func (p *FacebookServiceClient) GetOption(key string) (r string, err error)
- func (p *FacebookServiceClient) GetOptions() (r map[string]string, err error)
- func (p *FacebookServiceClient) GetStatus() (r FbStatus, err error)
- func (p *FacebookServiceClient) GetStatusDetails() (r string, err error)
- func (p *FacebookServiceClient) GetVersion() (r string, err error)
- func (p *FacebookServiceClient) Reinitialize() (err error)
- func (p *FacebookServiceClient) SetOption(key string, value string) (err error)
- func (p *FacebookServiceClient) Shutdown() (err error)
- type FacebookServiceProcessor
- func (p *FacebookServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *FacebookServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *FacebookServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *FacebookServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type FbStatus
- type GetCounterArgs
- type GetCounterResult
- type GetCountersArgs
- type GetCountersResult
- type GetCpuProfileArgs
- type GetCpuProfileResult
- type GetNameArgs
- type GetNameResult
- type GetOptionArgs
- type GetOptionResult
- type GetOptionsArgs
- type GetOptionsResult
- type GetStatusArgs
- type GetStatusDetailsArgs
- type GetStatusDetailsResult
- type GetStatusResult
- type GetVersionArgs
- type GetVersionResult
- type ReinitializeArgs
- type ReinitializeResult
- type SetOptionArgs
- type SetOptionResult
- type ShutdownArgs
- type ShutdownResult
Constants ¶
This section is empty.
Variables ¶
var GoUnusedProtection__ int
Functions ¶
This section is empty.
Types ¶
type AliveSinceArgs ¶
type AliveSinceArgs struct { }
func NewAliveSinceArgs ¶
func NewAliveSinceArgs() *AliveSinceArgs
func (*AliveSinceArgs) String ¶
func (p *AliveSinceArgs) String() string
type AliveSinceResult ¶
type AliveSinceResult struct {
Success int64 `thrift:"success,0"`
}
func NewAliveSinceResult ¶
func NewAliveSinceResult() *AliveSinceResult
func (*AliveSinceResult) String ¶
func (p *AliveSinceResult) String() string
type FacebookService ¶
type FacebookService interface { // Returns a descriptive name of the service GetName() (r string, err error) // Returns the version of the service GetVersion() (r string, err error) // Gets the status of this service GetStatus() (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() (r string, err error) // Gets the counters for this service GetCounters() (r map[string]int64, err error) // Gets the value of a single counter // // Parameters: // - Key GetCounter(key string) (r int64, err error) // Sets an option // // Parameters: // - Key // - Value SetOption(key string, value string) (err error) // Gets an option // // Parameters: // - Key GetOption(key string) (r string, err error) // Gets all options GetOptions() (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(profileDurationInSec int32) (r string, err error) // Returns the unix time that the server has been running since AliveSince() (r int64, err error) // Tell the server to reload its configuration, reopen log files, etc Reinitialize() (err error) // Suggest a shutdown to the server Shutdown() (err error) }
type FacebookServiceClient ¶
type FacebookServiceClient struct { Transport thrift.TTransport ProtocolFactory thrift.TProtocolFactory InputProtocol thrift.TProtocol OutputProtocol thrift.TProtocol SeqId int32 }
Standard base service
func NewFacebookServiceClientFactory ¶
func NewFacebookServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *FacebookServiceClient
func NewFacebookServiceClientProtocol ¶
func NewFacebookServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *FacebookServiceClient
func (*FacebookServiceClient) AliveSince ¶
func (p *FacebookServiceClient) AliveSince() (r int64, err error)
Returns the unix time that the server has been running since
func (*FacebookServiceClient) GetCounter ¶
func (p *FacebookServiceClient) GetCounter(key string) (r int64, err error)
Gets the value of a single counter
Parameters:
- Key
func (*FacebookServiceClient) GetCounters ¶
func (p *FacebookServiceClient) GetCounters() (r map[string]int64, err error)
Gets the counters for this service
func (*FacebookServiceClient) GetCpuProfile ¶
func (p *FacebookServiceClient) GetCpuProfile(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() (r string, err error)
Returns a descriptive name of the service
func (*FacebookServiceClient) GetOption ¶
func (p *FacebookServiceClient) GetOption(key string) (r string, err error)
Gets an option
Parameters:
- Key
func (*FacebookServiceClient) GetOptions ¶
func (p *FacebookServiceClient) GetOptions() (r map[string]string, err error)
Gets all options
func (*FacebookServiceClient) GetStatus ¶
func (p *FacebookServiceClient) GetStatus() (r FbStatus, err error)
Gets the status of this service
func (*FacebookServiceClient) GetStatusDetails ¶
func (p *FacebookServiceClient) GetStatusDetails() (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() (r string, err error)
Returns the version of the service
func (*FacebookServiceClient) Reinitialize ¶
func (p *FacebookServiceClient) Reinitialize() (err error)
Tell the server to reload its configuration, reopen log files, etc
func (*FacebookServiceClient) SetOption ¶
func (p *FacebookServiceClient) SetOption(key string, value string) (err error)
Sets an option
Parameters:
- Key
- Value
func (*FacebookServiceClient) Shutdown ¶
func (p *FacebookServiceClient) Shutdown() (err error)
Suggest a shutdown to the server
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(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*FacebookServiceProcessor) ProcessorMap ¶
func (p *FacebookServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type FbStatus ¶
type FbStatus int64
Common status reporting mechanism across all services
func FbStatusFromString ¶
type GetCounterArgs ¶
type GetCounterArgs struct {
Key string `thrift:"key,1"`
}
func NewGetCounterArgs ¶
func NewGetCounterArgs() *GetCounterArgs
func (*GetCounterArgs) String ¶
func (p *GetCounterArgs) String() string
type GetCounterResult ¶
type GetCounterResult struct {
Success int64 `thrift:"success,0"`
}
func NewGetCounterResult ¶
func NewGetCounterResult() *GetCounterResult
func (*GetCounterResult) String ¶
func (p *GetCounterResult) String() string
type GetCountersArgs ¶
type GetCountersArgs struct { }
func NewGetCountersArgs ¶
func NewGetCountersArgs() *GetCountersArgs
func (*GetCountersArgs) String ¶
func (p *GetCountersArgs) String() string
type GetCountersResult ¶
func NewGetCountersResult ¶
func NewGetCountersResult() *GetCountersResult
func (*GetCountersResult) String ¶
func (p *GetCountersResult) String() string
type GetCpuProfileArgs ¶
type GetCpuProfileArgs struct {
ProfileDurationInSec int32 `thrift:"profileDurationInSec,1"`
}
func NewGetCpuProfileArgs ¶
func NewGetCpuProfileArgs() *GetCpuProfileArgs
func (*GetCpuProfileArgs) String ¶
func (p *GetCpuProfileArgs) String() string
type GetCpuProfileResult ¶
type GetCpuProfileResult struct {
Success string `thrift:"success,0"`
}
func NewGetCpuProfileResult ¶
func NewGetCpuProfileResult() *GetCpuProfileResult
func (*GetCpuProfileResult) String ¶
func (p *GetCpuProfileResult) String() string
type GetNameArgs ¶
type GetNameArgs struct { }
func NewGetNameArgs ¶
func NewGetNameArgs() *GetNameArgs
func (*GetNameArgs) String ¶
func (p *GetNameArgs) String() string
type GetNameResult ¶
type GetNameResult struct {
Success string `thrift:"success,0"`
}
func NewGetNameResult ¶
func NewGetNameResult() *GetNameResult
func (*GetNameResult) String ¶
func (p *GetNameResult) String() string
type GetOptionArgs ¶
type GetOptionArgs struct {
Key string `thrift:"key,1"`
}
func NewGetOptionArgs ¶
func NewGetOptionArgs() *GetOptionArgs
func (*GetOptionArgs) String ¶
func (p *GetOptionArgs) String() string
type GetOptionResult ¶
type GetOptionResult struct {
Success string `thrift:"success,0"`
}
func NewGetOptionResult ¶
func NewGetOptionResult() *GetOptionResult
func (*GetOptionResult) String ¶
func (p *GetOptionResult) String() string
type GetOptionsArgs ¶
type GetOptionsArgs struct { }
func NewGetOptionsArgs ¶
func NewGetOptionsArgs() *GetOptionsArgs
func (*GetOptionsArgs) String ¶
func (p *GetOptionsArgs) String() string
type GetOptionsResult ¶
func NewGetOptionsResult ¶
func NewGetOptionsResult() *GetOptionsResult
func (*GetOptionsResult) String ¶
func (p *GetOptionsResult) String() string
type GetStatusArgs ¶
type GetStatusArgs struct { }
func NewGetStatusArgs ¶
func NewGetStatusArgs() *GetStatusArgs
func (*GetStatusArgs) String ¶
func (p *GetStatusArgs) String() string
type GetStatusDetailsArgs ¶
type GetStatusDetailsArgs struct { }
func NewGetStatusDetailsArgs ¶
func NewGetStatusDetailsArgs() *GetStatusDetailsArgs
func (*GetStatusDetailsArgs) Read ¶
func (p *GetStatusDetailsArgs) Read(iprot thrift.TProtocol) error
func (*GetStatusDetailsArgs) String ¶
func (p *GetStatusDetailsArgs) String() string
type GetStatusDetailsResult ¶
type GetStatusDetailsResult struct {
Success string `thrift:"success,0"`
}
func NewGetStatusDetailsResult ¶
func NewGetStatusDetailsResult() *GetStatusDetailsResult
func (*GetStatusDetailsResult) Read ¶
func (p *GetStatusDetailsResult) Read(iprot thrift.TProtocol) error
func (*GetStatusDetailsResult) String ¶
func (p *GetStatusDetailsResult) String() string
type GetStatusResult ¶
type GetStatusResult struct {
Success FbStatus `thrift:"success,0"`
}
func NewGetStatusResult ¶
func NewGetStatusResult() *GetStatusResult
func (*GetStatusResult) IsSetSuccess ¶
func (p *GetStatusResult) IsSetSuccess() bool
func (*GetStatusResult) String ¶
func (p *GetStatusResult) String() string
type GetVersionArgs ¶
type GetVersionArgs struct { }
func NewGetVersionArgs ¶
func NewGetVersionArgs() *GetVersionArgs
func (*GetVersionArgs) String ¶
func (p *GetVersionArgs) String() string
type GetVersionResult ¶
type GetVersionResult struct {
Success string `thrift:"success,0"`
}
func NewGetVersionResult ¶
func NewGetVersionResult() *GetVersionResult
func (*GetVersionResult) String ¶
func (p *GetVersionResult) String() string
type ReinitializeArgs ¶
type ReinitializeArgs struct { }
func NewReinitializeArgs ¶
func NewReinitializeArgs() *ReinitializeArgs
func (*ReinitializeArgs) String ¶
func (p *ReinitializeArgs) String() string
type ReinitializeResult ¶
type ReinitializeResult struct { }
func NewReinitializeResult ¶
func NewReinitializeResult() *ReinitializeResult
func (*ReinitializeResult) String ¶
func (p *ReinitializeResult) String() string
type SetOptionArgs ¶
func NewSetOptionArgs ¶
func NewSetOptionArgs() *SetOptionArgs
func (*SetOptionArgs) String ¶
func (p *SetOptionArgs) String() string
type SetOptionResult ¶
type SetOptionResult struct { }
func NewSetOptionResult ¶
func NewSetOptionResult() *SetOptionResult
func (*SetOptionResult) String ¶
func (p *SetOptionResult) String() string
type ShutdownArgs ¶
type ShutdownArgs struct { }
func NewShutdownArgs ¶
func NewShutdownArgs() *ShutdownArgs
func (*ShutdownArgs) String ¶
func (p *ShutdownArgs) String() string
type ShutdownResult ¶
type ShutdownResult struct { }
func NewShutdownResult ¶
func NewShutdownResult() *ShutdownResult
func (*ShutdownResult) String ¶
func (p *ShutdownResult) String() string