todospb

package
v0.0.0-...-15db04c Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_todos_todos_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Item

type Item struct {

	// Identity of the item
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Description of the task
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Due date of the task
	DueDate *date.Date `protobuf:"bytes,3,opt,name=due_date,json=dueDate,proto3" json:"due_date,omitempty"`
	// contains filtered or unexported fields
}

Simple ToDos Item Type

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetDescription

func (x *Item) GetDescription() string

func (*Item) GetDueDate

func (x *Item) GetDueDate() *date.Date

func (*Item) GetId

func (x *Item) GetId() string

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

type ItemCollection

type ItemCollection struct {

	// Meta for the response
	Meta *furo.Meta `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// the Hateoas links
	Links []*furo.Link `protobuf:"bytes,2,rep,name=links,proto3" json:"links,omitempty"`
	// the data contains a todos.Item
	Entities []*ItemEntity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"`
	// contains filtered or unexported fields
}

Collectioncontainer which holds items of type todos.ItemEntity

func (*ItemCollection) Descriptor deprecated

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

Deprecated: Use ItemCollection.ProtoReflect.Descriptor instead.

func (*ItemCollection) GetEntities

func (x *ItemCollection) GetEntities() []*ItemEntity
func (x *ItemCollection) GetLinks() []*furo.Link

func (*ItemCollection) GetMeta

func (x *ItemCollection) GetMeta() *furo.Meta

func (*ItemCollection) ProtoMessage

func (*ItemCollection) ProtoMessage()

func (*ItemCollection) ProtoReflect

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

func (*ItemCollection) Reset

func (x *ItemCollection) Reset()

func (*ItemCollection) String

func (x *ItemCollection) String() string

type ItemEntity

type ItemEntity struct {

	// the data contains a todos.Item
	Data *Item `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// the Hateoas links
	Links []*furo.Link `protobuf:"bytes,2,rep,name=links,proto3" json:"links,omitempty"`
	// Meta for the response
	Meta *furo.Meta `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

Entitycontainer which holds a todos.Item

func (*ItemEntity) Descriptor deprecated

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

Deprecated: Use ItemEntity.ProtoReflect.Descriptor instead.

func (*ItemEntity) GetData

func (x *ItemEntity) GetData() *Item
func (x *ItemEntity) GetLinks() []*furo.Link

func (*ItemEntity) GetMeta

func (x *ItemEntity) GetMeta() *furo.Meta

func (*ItemEntity) ProtoMessage

func (*ItemEntity) ProtoMessage()

func (*ItemEntity) ProtoReflect

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

func (*ItemEntity) Reset

func (x *ItemEntity) Reset()

func (*ItemEntity) String

func (x *ItemEntity) String() string

Jump to

Keyboard shortcuts

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