var Currency_name = map[int32]string{ 0: "UNKNOWN_CURRENCY", 1: "GBP", 2: "EUR", 3: "USD", }
var Currency_value = map[string]int32{ "UNKNOWN_CURRENCY": 0, "GBP": 1, "EUR": 2, "USD": 3, }
var E_SqlIgnore = &proto.ExtensionDesc{ ExtendedType: (*google_protobuf.FieldOptions)(nil), ExtensionType: (*string)(nil), Field: 51238, Name: "common.sql_ignore", Tag: "bytes,51238,opt,name=sql_ignore,json=sqlIgnore", Filename: "golang.conradwood.net/apis/common/common.proto", }
var E_SqlName = &proto.ExtensionDesc{ ExtendedType: (*google_protobuf.FieldOptions)(nil), ExtensionType: (*string)(nil), Field: 51239, Name: "common.sql_name", Tag: "bytes,51239,opt,name=sql_name,json=sqlName", Filename: "golang.conradwood.net/apis/common/common.proto", }
var E_SqlNullreference = &proto.ExtensionDesc{ ExtendedType: (*google_protobuf.FieldOptions)(nil), ExtensionType: (*string)(nil), Field: 51240, Name: "common.sql_nullreference", Tag: "bytes,51240,opt,name=sql_nullreference,json=sqlNullreference", Filename: "golang.conradwood.net/apis/common/common.proto", }
var E_SqlReference = &proto.ExtensionDesc{ ExtendedType: (*google_protobuf.FieldOptions)(nil), ExtensionType: (*string)(nil), Field: 51236, Name: "common.sql_reference", Tag: "bytes,51236,opt,name=sql_reference,json=sqlReference", Filename: "golang.conradwood.net/apis/common/common.proto", }
var E_SqlType = &proto.ExtensionDesc{ ExtendedType: (*google_protobuf.FieldOptions)(nil), ExtensionType: (*string)(nil), Field: 51235, Name: "common.sql_type", Tag: "bytes,51235,opt,name=sql_type,json=sqlType", Filename: "golang.conradwood.net/apis/common/common.proto", }
var E_SqlUnique = &proto.ExtensionDesc{ ExtendedType: (*google_protobuf.FieldOptions)(nil), ExtensionType: (*string)(nil), Field: 51237, Name: "common.sql_unique", Tag: "bytes,51237,opt,name=sql_unique,json=sqlUnique", Filename: "golang.conradwood.net/apis/common/common.proto", }
var Health_name = map[int32]string{ 0: "UNKNOWN_HEALTH", 1: "STARTING", 2: "READY", 3: "STOPPING", }
var Health_value = map[string]int32{ "UNKNOWN_HEALTH": 0, "STARTING": 1, "READY": 2, "STOPPING": 3, }
var Language_name = map[int32]string{ 0: "UNKNOWN", 1: "ENGLISH_UK", 2: "GERMAN", }
var Language_value = map[string]int32{ "UNKNOWN": 0, "ENGLISH_UK": 1, "GERMAN": 2, }
var ProgrammingLanguage_name = map[int32]string{ 0: "INVALID", 1: "GO", 2: "Java", }
var ProgrammingLanguage_value = map[string]int32{ "INVALID": 0, "GO": 1, "Java": 2, }
some services report cpuload on where they are running usage: add this to your service: rpc GetCPULoad(common.Void) returns (common.CPULoad); add this to your source: import ( "golang.conradwood.net/go-easyops/linux" ) add this to your grpcServer struct: linux.Loadavg // embed GetCPULoad() RPC
type CPULoad struct {
Avg1 float64 `protobuf:"fixed64,1,opt,name=Avg1" json:"Avg1,omitempty"`
Avg5 float64 `protobuf:"fixed64,2,opt,name=Avg5" json:"Avg5,omitempty"`
Avg15 float64 `protobuf:"fixed64,3,opt,name=Avg15" json:"Avg15,omitempty"`
CPUCount uint32 `protobuf:"varint,4,opt,name=CPUCount" json:"CPUCount,omitempty"`
PerCPU float64 `protobuf:"fixed64,5,opt,name=PerCPU" json:"PerCPU,omitempty"`
User uint64 `protobuf:"varint,6,opt,name=User" json:"User,omitempty"`
Nice uint64 `protobuf:"varint,7,opt,name=Nice" json:"Nice,omitempty"`
System uint64 `protobuf:"varint,8,opt,name=System" json:"System,omitempty"`
Idle uint64 `protobuf:"varint,9,opt,name=Idle" json:"Idle,omitempty"`
IOWait uint64 `protobuf:"varint,10,opt,name=IOWait" json:"IOWait,omitempty"`
IRQ uint64 `protobuf:"varint,11,opt,name=IRQ" json:"IRQ,omitempty"`
SoftIRQ uint64 `protobuf:"varint,12,opt,name=SoftIRQ" json:"SoftIRQ,omitempty"`
Sum uint64 `protobuf:"varint,13,opt,name=Sum" json:"Sum,omitempty"`
RawSum uint64 `protobuf:"varint,14,opt,name=RawSum" json:"RawSum,omitempty"`
IdleTime float64 `protobuf:"fixed64,15,opt,name=IdleTime" json:"IdleTime,omitempty"`
}
func (*CPULoad) Descriptor() ([]byte, []int)
func (m *CPULoad) GetAvg1() float64
func (m *CPULoad) GetAvg15() float64
func (m *CPULoad) GetAvg5() float64
func (m *CPULoad) GetCPUCount() uint32
func (m *CPULoad) GetIOWait() uint64
func (m *CPULoad) GetIRQ() uint64
func (m *CPULoad) GetIdle() uint64
func (m *CPULoad) GetIdleTime() float64
func (m *CPULoad) GetNice() uint64
func (m *CPULoad) GetPerCPU() float64
func (m *CPULoad) GetRawSum() uint64
func (m *CPULoad) GetSoftIRQ() uint64
func (m *CPULoad) GetSum() uint64
func (m *CPULoad) GetSystem() uint64
func (m *CPULoad) GetUser() uint64
func (*CPULoad) ProtoMessage()
func (m *CPULoad) Reset()
func (m *CPULoad) String() string
type Currency int32
const (
Currency_UNKNOWN_CURRENCY Currency = 0
Currency_GBP Currency = 1
Currency_EUR Currency = 2
Currency_USD Currency = 3
)
func (Currency) EnumDescriptor() ([]byte, []int)
func (x Currency) String() string
type Date struct {
Day uint32 `protobuf:"varint,1,opt,name=Day" json:"Day,omitempty"`
Month uint32 `protobuf:"varint,2,opt,name=Month" json:"Month,omitempty"`
Year uint32 `protobuf:"varint,3,opt,name=Year" json:"Year,omitempty"`
}
func (*Date) Descriptor() ([]byte, []int)
func (m *Date) GetDay() uint32
func (m *Date) GetMonth() uint32
func (m *Date) GetYear() uint32
func (*Date) ProtoMessage()
func (m *Date) Reset()
func (m *Date) String() string
type Health int32
const (
Health_UNKNOWN_HEALTH Health = 0
Health_STARTING Health = 1
Health_READY Health = 2
Health_STOPPING Health = 3
)
func (Health) EnumDescriptor() ([]byte, []int)
func (x Health) String() string
type Language int32
const (
Language_UNKNOWN Language = 0
Language_ENGLISH_UK Language = 1
Language_GERMAN Language = 2
)
func (Language) EnumDescriptor() ([]byte, []int)
func (x Language) String() string
type ProgrammingLanguage int32
const (
ProgrammingLanguage_INVALID ProgrammingLanguage = 0
ProgrammingLanguage_GO ProgrammingLanguage = 1
ProgrammingLanguage_Java ProgrammingLanguage = 2
)
func (ProgrammingLanguage) EnumDescriptor() ([]byte, []int)
func (x ProgrammingLanguage) String() string
Status represents whether or not the specified operation was successful, and what error occurred if it was not.
type Status struct {
// Success is set to true or false depending on whether or
// not the operation was successful.
// In the event of an error, further details can be found
// in the `ErrorCode` and `ErrorDescription` fields.
Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
// ErrorCode is present if an error has occurred during the
// operation. ErrorCode mappings will be listed in our
// documentation.
ErrorCode int32 `protobuf:"varint,2,opt,name=ErrorCode" json:"ErrorCode,omitempty"`
// ErrorDescription is present if an error has occurred during
// the operation. This is intended to be human-readable (machines
// should use the ErrorCode instead).
ErrorDescription string `protobuf:"bytes,3,opt,name=ErrorDescription" json:"ErrorDescription,omitempty"`
}
func (*Status) Descriptor() ([]byte, []int)
func (m *Status) GetErrorCode() int32
func (m *Status) GetErrorDescription() string
func (m *Status) GetSuccess() bool
func (*Status) ProtoMessage()
func (m *Status) Reset()
func (m *Status) String() string
Void should be used when no explicit request or response is required.
type Void struct {
}
func (*Void) Descriptor() ([]byte, []int)
func (*Void) ProtoMessage()
func (m *Void) Reset()
func (m *Void) String() string