testing

package
v6.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0, BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Foo) GetStatus

func (m *Foo) GetStatus() Status

func (*Foo) GetTimestamp

func (m *Foo) GetTimestamp() *timestamp.Timestamp

func (*Foo) ProtoMessage

func (*Foo) ProtoMessage()

func (*Foo) Reset

func (m *Foo) Reset()

func (*Foo) String

func (m *Foo) String() string

func (*Foo) XXX_DiscardUnknown

func (m *Foo) XXX_DiscardUnknown()

func (*Foo) XXX_Marshal

func (m *Foo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Foo) XXX_Merge

func (dst *Foo) XXX_Merge(src proto.Message)

func (*Foo) XXX_Size

func (m *Foo) XXX_Size() int

func (*Foo) XXX_Unmarshal

func (m *Foo) XXX_Unmarshal(b []byte) error

type Status

type Status int32
const (
	Status_STATUS_NONE    Status = 0
	Status_STATUS_INIT    Status = 1
	Status_STATUS_OK      Status = 2
	Status_STATUS_OFFLINE Status = 3
	Status_STATUS_ERROR   Status = 4
)

func StatusSimpleValueOf

func StatusSimpleValueOf(s string) (Status, error)

StatusSimpleValueOf returns the string format of Status

func (Status) EnumDescriptor

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

func (Status) SimpleString

func (x Status) SimpleString() string

SimpleString returns the string format of Status

func (Status) String

func (x Status) String() string

Jump to

Keyboard shortcuts

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