model

package
v0.0.0-...-6b2d746 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Task_StateType_name = map[int32]string{
		0: "TODO",
		1: "DONE",
	}
	Task_StateType_value = map[string]int32{
		"TODO": 0,
		"DONE": 1,
	}
)

Enum value maps for Task_StateType.

View Source
var File_pkg_model_model_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Task

type Task struct {
	Id      uint64                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique ID number for this person.
	Name    string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	State   Task_StateType         `protobuf:"varint,3,opt,name=state,proto3,enum=model.Task_StateType" json:"state,omitempty"`
	Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
	Deleted *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*Task) Descriptor deprecated

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

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetCreated

func (x *Task) GetCreated() *timestamppb.Timestamp

func (*Task) GetDeleted

func (x *Task) GetDeleted() *timestamppb.Timestamp

func (*Task) GetId

func (x *Task) GetId() uint64

func (*Task) GetName

func (x *Task) GetName() string

func (*Task) GetState

func (x *Task) GetState() Task_StateType

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

func (x *Task) ProtoReflect() protoreflect.Message

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

type Task_StateType

type Task_StateType int32
const (
	Task_TODO Task_StateType = 0
	Task_DONE Task_StateType = 1
)

func (Task_StateType) Descriptor

func (Task_StateType) Enum

func (x Task_StateType) Enum() *Task_StateType

func (Task_StateType) EnumDescriptor deprecated

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

Deprecated: Use Task_StateType.Descriptor instead.

func (Task_StateType) Number

func (Task_StateType) String

func (x Task_StateType) String() string

func (Task_StateType) Type

Jump to

Keyboard shortcuts

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