...

Package common

import "golang.conradwood.net/apis/common"
Overview
Index

Overview ▾

Package common is a generated protocol buffer package.

It is generated from these files:

golang.conradwood.net/apis/common/common.proto

It has these top-level messages:

Void
CPULoad
Status
Date

Index ▾

Variables
type CPULoad
    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
    func (Currency) EnumDescriptor() ([]byte, []int)
    func (x Currency) String() string
type Date
    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
    func (Health) EnumDescriptor() ([]byte, []int)
    func (x Health) String() string
type Language
    func (Language) EnumDescriptor() ([]byte, []int)
    func (x Language) String() string
type ProgrammingLanguage
    func (ProgrammingLanguage) EnumDescriptor() ([]byte, []int)
    func (x ProgrammingLanguage) String() string
type Status
    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
type Void
    func (*Void) Descriptor() ([]byte, []int)
    func (*Void) ProtoMessage()
    func (m *Void) Reset()
    func (m *Void) String() string

Package files

common.pb.go

Variables

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,
}

type CPULoad

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

func (*CPULoad) Descriptor() ([]byte, []int)

func (*CPULoad) GetAvg1

func (m *CPULoad) GetAvg1() float64

func (*CPULoad) GetAvg15

func (m *CPULoad) GetAvg15() float64

func (*CPULoad) GetAvg5

func (m *CPULoad) GetAvg5() float64

func (*CPULoad) GetCPUCount

func (m *CPULoad) GetCPUCount() uint32

func (*CPULoad) GetIOWait

func (m *CPULoad) GetIOWait() uint64

func (*CPULoad) GetIRQ

func (m *CPULoad) GetIRQ() uint64

func (*CPULoad) GetIdle

func (m *CPULoad) GetIdle() uint64

func (*CPULoad) GetIdleTime

func (m *CPULoad) GetIdleTime() float64

func (*CPULoad) GetNice

func (m *CPULoad) GetNice() uint64

func (*CPULoad) GetPerCPU

func (m *CPULoad) GetPerCPU() float64

func (*CPULoad) GetRawSum

func (m *CPULoad) GetRawSum() uint64

func (*CPULoad) GetSoftIRQ

func (m *CPULoad) GetSoftIRQ() uint64

func (*CPULoad) GetSum

func (m *CPULoad) GetSum() uint64

func (*CPULoad) GetSystem

func (m *CPULoad) GetSystem() uint64

func (*CPULoad) GetUser

func (m *CPULoad) GetUser() uint64

func (*CPULoad) ProtoMessage

func (*CPULoad) ProtoMessage()

func (*CPULoad) Reset

func (m *CPULoad) Reset()

func (*CPULoad) String

func (m *CPULoad) String() string

type Currency

type Currency int32
const (
    Currency_UNKNOWN_CURRENCY Currency = 0
    Currency_GBP              Currency = 1
    Currency_EUR              Currency = 2
    Currency_USD              Currency = 3
)

func (Currency) EnumDescriptor

func (Currency) EnumDescriptor() ([]byte, []int)

func (Currency) String

func (x Currency) String() string

type Date

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

func (*Date) Descriptor() ([]byte, []int)

func (*Date) GetDay

func (m *Date) GetDay() uint32

func (*Date) GetMonth

func (m *Date) GetMonth() uint32

func (*Date) GetYear

func (m *Date) GetYear() uint32

func (*Date) ProtoMessage

func (*Date) ProtoMessage()

func (*Date) Reset

func (m *Date) Reset()

func (*Date) String

func (m *Date) String() string

type Health

type Health int32
const (
    Health_UNKNOWN_HEALTH Health = 0
    Health_STARTING       Health = 1
    Health_READY          Health = 2
    Health_STOPPING       Health = 3
)

func (Health) EnumDescriptor

func (Health) EnumDescriptor() ([]byte, []int)

func (Health) String

func (x Health) String() string

type Language

type Language int32
const (
    Language_UNKNOWN    Language = 0
    Language_ENGLISH_UK Language = 1
    Language_GERMAN     Language = 2
)

func (Language) EnumDescriptor

func (Language) EnumDescriptor() ([]byte, []int)

func (Language) String

func (x Language) String() string

type ProgrammingLanguage

type ProgrammingLanguage int32
const (
    ProgrammingLanguage_INVALID ProgrammingLanguage = 0
    ProgrammingLanguage_GO      ProgrammingLanguage = 1
    ProgrammingLanguage_Java    ProgrammingLanguage = 2
)

func (ProgrammingLanguage) EnumDescriptor

func (ProgrammingLanguage) EnumDescriptor() ([]byte, []int)

func (ProgrammingLanguage) String

func (x ProgrammingLanguage) String() string

type Status

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

func (*Status) Descriptor() ([]byte, []int)

func (*Status) GetErrorCode

func (m *Status) GetErrorCode() int32

func (*Status) GetErrorDescription

func (m *Status) GetErrorDescription() string

func (*Status) GetSuccess

func (m *Status) GetSuccess() bool

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) String

func (m *Status) String() string

type Void

Void should be used when no explicit request or response is required.

type Void struct {
}

func (*Void) Descriptor

func (*Void) Descriptor() ([]byte, []int)

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) Reset

func (m *Void) Reset()

func (*Void) String

func (m *Void) String() string