notes

package
v0.0.0-...-d1b04fc Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package notes is a generated protocol buffer package.

It is generated from these files:

notes.proto

It has these top-level messages:

Query
NoteList
Tag
Note
Empty

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNotesHandler

func RegisterNotesHandler(s server.Server, hdlr NotesHandler, opts ...server.HandlerOption) error

func RegisterNotesServer

func RegisterNotesServer(s *grpc.Server, srv NotesServer)

Types

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

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

func (*Empty) XXX_Merge

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

type Note

type Note struct {
	Id                   string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title                string               `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Author               string               `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	Team                 string               `protobuf:"bytes,4,opt,name=team,proto3" json:"team,omitempty"`
	Body                 string               `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
	Type                 string               `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
	DateCreated          *timestamp.Timestamp `protobuf:"bytes,7,opt,name=dateCreated,proto3" json:"dateCreated,omitempty"`
	DateModified         *timestamp.Timestamp `protobuf:"bytes,8,opt,name=dateModified,proto3" json:"dateModified,omitempty"`
	Link                 string               `protobuf:"bytes,9,opt,name=link,proto3" json:"link,omitempty"`
	Image                []byte               `protobuf:"bytes,10,opt,name=image,proto3" json:"image,omitempty"`
	Tags                 []*Tag               `protobuf:"bytes,11,rep,name=tags,proto3" json:"tags,omitempty"`
	Score                float32              `protobuf:"fixed32,12,opt,name=score,proto3" json:"score,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Note) Descriptor

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

func (*Note) GetAuthor

func (m *Note) GetAuthor() string

func (*Note) GetBody

func (m *Note) GetBody() string

func (*Note) GetDateCreated

func (m *Note) GetDateCreated() *timestamp.Timestamp

func (*Note) GetDateModified

func (m *Note) GetDateModified() *timestamp.Timestamp

func (*Note) GetId

func (m *Note) GetId() string

func (*Note) GetImage

func (m *Note) GetImage() []byte
func (m *Note) GetLink() string

func (*Note) GetScore

func (m *Note) GetScore() float32

func (*Note) GetTags

func (m *Note) GetTags() []*Tag

func (*Note) GetTeam

func (m *Note) GetTeam() string

func (*Note) GetTitle

func (m *Note) GetTitle() string

func (*Note) GetType

func (m *Note) GetType() string

func (*Note) ProtoMessage

func (*Note) ProtoMessage()

func (*Note) Reset

func (m *Note) Reset()

func (*Note) String

func (m *Note) String() string

func (*Note) XXX_DiscardUnknown

func (m *Note) XXX_DiscardUnknown()

func (*Note) XXX_Marshal

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

func (*Note) XXX_Merge

func (m *Note) XXX_Merge(src proto.Message)

func (*Note) XXX_Size

func (m *Note) XXX_Size() int

func (*Note) XXX_Unmarshal

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

type NoteList

type NoteList struct {
	Notes                []*Note  `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NoteList) Descriptor

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

func (*NoteList) GetNotes

func (m *NoteList) GetNotes() []*Note

func (*NoteList) ProtoMessage

func (*NoteList) ProtoMessage()

func (*NoteList) Reset

func (m *NoteList) Reset()

func (*NoteList) String

func (m *NoteList) String() string

func (*NoteList) XXX_DiscardUnknown

func (m *NoteList) XXX_DiscardUnknown()

func (*NoteList) XXX_Marshal

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

func (*NoteList) XXX_Merge

func (m *NoteList) XXX_Merge(src proto.Message)

func (*NoteList) XXX_Size

func (m *NoteList) XXX_Size() int

func (*NoteList) XXX_Unmarshal

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

type NotesClient

type NotesClient interface {
	CreateNote(ctx context.Context, in *Note, opts ...grpc.CallOption) (*Note, error)
	DeleteNote(ctx context.Context, in *Note, opts ...grpc.CallOption) (*Note, error)
	UpdateNote(ctx context.Context, in *Note, opts ...grpc.CallOption) (*Note, error)
	GetNotes(ctx context.Context, in *Query, opts ...grpc.CallOption) (*NoteList, error)
}

NotesClient is the client API for Notes service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewNotesClient

func NewNotesClient(cc *grpc.ClientConn) NotesClient

type NotesHandler

type NotesHandler interface {
	CreateNote(context.Context, *Note, *Note) error
	DeleteNote(context.Context, *Note, *Note) error
	UpdateNote(context.Context, *Note, *Note) error
	GetNotes(context.Context, *Query, *NoteList) error
}

type NotesServer

type NotesServer interface {
	CreateNote(context.Context, *Note) (*Note, error)
	DeleteNote(context.Context, *Note) (*Note, error)
	UpdateNote(context.Context, *Note) (*Note, error)
	GetNotes(context.Context, *Query) (*NoteList, error)
}

NotesServer is the server API for Notes service.

type NotesService

type NotesService interface {
	CreateNote(ctx context.Context, in *Note, opts ...client.CallOption) (*Note, error)
	DeleteNote(ctx context.Context, in *Note, opts ...client.CallOption) (*Note, error)
	UpdateNote(ctx context.Context, in *Note, opts ...client.CallOption) (*Note, error)
	GetNotes(ctx context.Context, in *Query, opts ...client.CallOption) (*NoteList, error)
}

func NewNotesService

func NewNotesService(name string, c client.Client) NotesService

type Query

type Query struct {
	IDs                  []string             `protobuf:"bytes,1,rep,name=IDs,proto3" json:"IDs,omitempty"`
	Title                string               `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Team                 string               `protobuf:"bytes,3,opt,name=team,proto3" json:"team,omitempty"`
	Authors              []string             `protobuf:"bytes,4,rep,name=authors,proto3" json:"authors,omitempty"`
	Todate               *timestamp.Timestamp `protobuf:"bytes,5,opt,name=todate,proto3" json:"todate,omitempty"`
	Fromdate             *timestamp.Timestamp `protobuf:"bytes,6,opt,name=fromdate,proto3" json:"fromdate,omitempty"`
	Tags                 []string             `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Query) Descriptor

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

func (*Query) GetAuthors

func (m *Query) GetAuthors() []string

func (*Query) GetFromdate

func (m *Query) GetFromdate() *timestamp.Timestamp

func (*Query) GetIDs

func (m *Query) GetIDs() []string

func (*Query) GetTags

func (m *Query) GetTags() []string

func (*Query) GetTeam

func (m *Query) GetTeam() string

func (*Query) GetTitle

func (m *Query) GetTitle() string

func (*Query) GetTodate

func (m *Query) GetTodate() *timestamp.Timestamp

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) Reset

func (m *Query) Reset()

func (*Query) String

func (m *Query) String() string

func (*Query) XXX_DiscardUnknown

func (m *Query) XXX_DiscardUnknown()

func (*Query) XXX_Marshal

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

func (*Query) XXX_Merge

func (m *Query) XXX_Merge(src proto.Message)

func (*Query) XXX_Size

func (m *Query) XXX_Size() int

func (*Query) XXX_Unmarshal

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

type Tag

type Tag struct {
	Text                 string   `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	Color                string   `protobuf:"bytes,2,opt,name=color,proto3" json:"color,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Tag) Descriptor

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

func (*Tag) GetColor

func (m *Tag) GetColor() string

func (*Tag) GetText

func (m *Tag) GetText() string

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) Reset

func (m *Tag) Reset()

func (*Tag) String

func (m *Tag) String() string

func (*Tag) XXX_DiscardUnknown

func (m *Tag) XXX_DiscardUnknown()

func (*Tag) XXX_Marshal

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

func (*Tag) XXX_Merge

func (m *Tag) XXX_Merge(src proto.Message)

func (*Tag) XXX_Size

func (m *Tag) XXX_Size() int

func (*Tag) XXX_Unmarshal

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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