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 ¶
- func RegisterNotesHandler(s server.Server, hdlr NotesHandler, opts ...server.HandlerOption) error
- func RegisterNotesServer(s *grpc.Server, srv NotesServer)
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type Note
- func (*Note) Descriptor() ([]byte, []int)
- func (m *Note) GetAuthor() string
- func (m *Note) GetBody() string
- func (m *Note) GetDateCreated() *timestamp.Timestamp
- func (m *Note) GetDateModified() *timestamp.Timestamp
- func (m *Note) GetId() string
- func (m *Note) GetImage() []byte
- func (m *Note) GetLink() string
- func (m *Note) GetScore() float32
- func (m *Note) GetTags() []*Tag
- func (m *Note) GetTeam() string
- func (m *Note) GetTitle() string
- func (m *Note) GetType() string
- func (*Note) ProtoMessage()
- func (m *Note) Reset()
- func (m *Note) String() string
- func (m *Note) XXX_DiscardUnknown()
- func (m *Note) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Note) XXX_Merge(src proto.Message)
- func (m *Note) XXX_Size() int
- func (m *Note) XXX_Unmarshal(b []byte) error
- type NoteList
- func (*NoteList) Descriptor() ([]byte, []int)
- func (m *NoteList) GetNotes() []*Note
- func (*NoteList) ProtoMessage()
- func (m *NoteList) Reset()
- func (m *NoteList) String() string
- func (m *NoteList) XXX_DiscardUnknown()
- func (m *NoteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NoteList) XXX_Merge(src proto.Message)
- func (m *NoteList) XXX_Size() int
- func (m *NoteList) XXX_Unmarshal(b []byte) error
- type NotesClient
- type NotesHandler
- type NotesServer
- type NotesService
- type Query
- func (*Query) Descriptor() ([]byte, []int)
- func (m *Query) GetAuthors() []string
- func (m *Query) GetFromdate() *timestamp.Timestamp
- func (m *Query) GetIDs() []string
- func (m *Query) GetTags() []string
- func (m *Query) GetTeam() string
- func (m *Query) GetTitle() string
- func (m *Query) GetTodate() *timestamp.Timestamp
- func (*Query) ProtoMessage()
- func (m *Query) Reset()
- func (m *Query) String() string
- func (m *Query) XXX_DiscardUnknown()
- func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Query) XXX_Merge(src proto.Message)
- func (m *Query) XXX_Size() int
- func (m *Query) XXX_Unmarshal(b []byte) error
- type Tag
- func (*Tag) Descriptor() ([]byte, []int)
- func (m *Tag) GetColor() string
- func (m *Tag) GetText() string
- func (*Tag) ProtoMessage()
- func (m *Tag) Reset()
- func (m *Tag) String() string
- func (m *Tag) XXX_DiscardUnknown()
- func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tag) XXX_Merge(src proto.Message)
- func (m *Tag) XXX_Size() int
- func (m *Tag) XXX_Unmarshal(b []byte) error
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
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) GetDateCreated ¶
func (*Note) GetDateModified ¶
func (*Note) ProtoMessage ¶
func (*Note) ProtoMessage()
func (*Note) XXX_DiscardUnknown ¶
func (m *Note) XXX_DiscardUnknown()
func (*Note) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*NoteList) ProtoMessage()
func (*NoteList) XXX_DiscardUnknown ¶
func (m *NoteList) XXX_DiscardUnknown()
func (*NoteList) XXX_Marshal ¶
func (*NoteList) XXX_Unmarshal ¶
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 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) GetAuthors ¶
func (*Query) GetFromdate ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) XXX_DiscardUnknown ¶
func (m *Query) XXX_DiscardUnknown()
func (*Query) XXX_Marshal ¶
func (*Query) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) XXX_DiscardUnknown ¶
func (m *Tag) XXX_DiscardUnknown()
func (*Tag) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.