note

package module
v1.0.3-0...-0875b52 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNoteServer

func RegisterNoteServer(s *grpc.Server, srv NoteServer)

Types

type NoteClient

type NoteClient interface {
	ListNotes(ctx context.Context, in *NotesRequest, opts ...grpc.CallOption) (*NotesResponse, error)
}

NoteClient is the client API for Note service.

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

func NewNoteClient

func NewNoteClient(cc *grpc.ClientConn) NoteClient

type NoteServer

type NoteServer interface {
	ListNotes(context.Context, *NotesRequest) (*NotesResponse, error)
}

NoteServer is the server API for Note service.

type NotesRequest

type NotesRequest struct {
	UserId               string      `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Sort                 *SortOption `protobuf:"bytes,2,opt,name=sort,proto3" json:"sort,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*NotesRequest) Descriptor

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

func (*NotesRequest) GetSort

func (m *NotesRequest) GetSort() *SortOption

func (*NotesRequest) GetUserId

func (m *NotesRequest) GetUserId() string

func (*NotesRequest) ProtoMessage

func (*NotesRequest) ProtoMessage()

func (*NotesRequest) Reset

func (m *NotesRequest) Reset()

func (*NotesRequest) String

func (m *NotesRequest) String() string

func (*NotesRequest) XXX_DiscardUnknown

func (m *NotesRequest) XXX_DiscardUnknown()

func (*NotesRequest) XXX_Marshal

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

func (*NotesRequest) XXX_Merge

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

func (*NotesRequest) XXX_Size

func (m *NotesRequest) XXX_Size() int

func (*NotesRequest) XXX_Unmarshal

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

type NotesResponse

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

func (*NotesResponse) Descriptor

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

func (*NotesResponse) GetNotes

func (m *NotesResponse) GetNotes() []string

func (*NotesResponse) ProtoMessage

func (*NotesResponse) ProtoMessage()

func (*NotesResponse) Reset

func (m *NotesResponse) Reset()

func (*NotesResponse) String

func (m *NotesResponse) String() string

func (*NotesResponse) XXX_DiscardUnknown

func (m *NotesResponse) XXX_DiscardUnknown()

func (*NotesResponse) XXX_Marshal

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

func (*NotesResponse) XXX_Merge

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

func (*NotesResponse) XXX_Size

func (m *NotesResponse) XXX_Size() int

func (*NotesResponse) XXX_Unmarshal

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

type SortOption

type SortOption struct {
	Field                string   `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	Order                string   `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SortOption) Descriptor

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

func (*SortOption) GetField

func (m *SortOption) GetField() string

func (*SortOption) GetOrder

func (m *SortOption) GetOrder() string

func (*SortOption) ProtoMessage

func (*SortOption) ProtoMessage()

func (*SortOption) Reset

func (m *SortOption) Reset()

func (*SortOption) String

func (m *SortOption) String() string

func (*SortOption) XXX_DiscardUnknown

func (m *SortOption) XXX_DiscardUnknown()

func (*SortOption) XXX_Marshal

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

func (*SortOption) XXX_Merge

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

func (*SortOption) XXX_Size

func (m *SortOption) XXX_Size() int

func (*SortOption) XXX_Unmarshal

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

type UnimplementedNoteServer

type UnimplementedNoteServer struct {
}

UnimplementedNoteServer can be embedded to have forward compatible implementations.

func (*UnimplementedNoteServer) ListNotes

Jump to

Keyboard shortcuts

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