Documentation ¶
Index ¶
- Variables
- type Foo
- func (*Foo) Descriptor() ([]byte, []int)
- func (m *Foo) GetStatus() Status
- func (m *Foo) GetTimestamp() *timestamp.Timestamp
- func (*Foo) ProtoMessage()
- func (m *Foo) Reset()
- func (m *Foo) String() string
- func (m *Foo) XXX_DiscardUnknown()
- func (m *Foo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Foo) XXX_Merge(src proto.Message)
- func (m *Foo) XXX_Size() int
- func (m *Foo) XXX_Unmarshal(b []byte) error
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var Status_name = map[int32]string{
0: "STATUS_NONE",
1: "STATUS_INIT",
2: "STATUS_OK",
3: "STATUS_OFFLINE",
4: "STATUS_ERROR",
}
View Source
var Status_value = map[string]int32{
"STATUS_NONE": 0,
"STATUS_INIT": 1,
"STATUS_OK": 2,
"STATUS_OFFLINE": 3,
"STATUS_ERROR": 4,
}
Functions ¶
This section is empty.
Types ¶
type Foo ¶
type Foo struct { Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"` Status Status `protobuf:"varint,2,opt,name=status,enum=testing.Status" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Foo) Descriptor ¶
func (*Foo) GetTimestamp ¶
func (*Foo) ProtoMessage ¶
func (*Foo) ProtoMessage()
func (*Foo) XXX_DiscardUnknown ¶
func (m *Foo) XXX_DiscardUnknown()
func (*Foo) XXX_Unmarshal ¶
type Status ¶
type Status int32
func StatusSimpleValueOf ¶
StatusSimpleValueOf returns the string format of Status
func (Status) EnumDescriptor ¶
func (Status) SimpleString ¶
SimpleString returns the string format of Status
Click to show internal directories.
Click to hide internal directories.