Documentation ¶
Overview ¶
Package moment is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMomentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMomentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MomentServiceClient) error
- func RegisterMomentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMomentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MomentServiceServer) error
- func RegisterMomentServiceServer(s *grpc.Server, srv MomentServiceServer)
- type BoolResponse
- func (*BoolResponse) Descriptor() ([]byte, []int)
- func (m *BoolResponse) GetIsSuccess() bool
- func (m *BoolResponse) Marshal() (dAtA []byte, err error)
- func (m *BoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *BoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BoolResponse) ProtoMessage()
- func (m *BoolResponse) Reset()
- func (m *BoolResponse) Size() (n int)
- func (m *BoolResponse) String() string
- func (m *BoolResponse) Unmarshal(dAtA []byte) error
- func (this *BoolResponse) Validate() error
- func (m *BoolResponse) XXX_DiscardUnknown()
- func (m *BoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BoolResponse) XXX_Merge(src proto.Message)
- func (*BoolResponse) XXX_MessageName() string
- func (m *BoolResponse) XXX_Size() int
- func (m *BoolResponse) XXX_Unmarshal(b []byte) error
- type CreateMomentRequest
- func (*CreateMomentRequest) Descriptor() ([]byte, []int)
- func (m *CreateMomentRequest) GetEntityID() string
- func (m *CreateMomentRequest) GetImageURLs() []string
- func (m *CreateMomentRequest) GetMessage() string
- func (m *CreateMomentRequest) GetTitle() string
- func (m *CreateMomentRequest) GetVideoURLs() []string
- func (m *CreateMomentRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateMomentRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateMomentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateMomentRequest) ProtoMessage()
- func (m *CreateMomentRequest) Reset()
- func (m *CreateMomentRequest) Size() (n int)
- func (m *CreateMomentRequest) String() string
- func (m *CreateMomentRequest) Unmarshal(dAtA []byte) error
- func (this *CreateMomentRequest) Validate() error
- func (m *CreateMomentRequest) XXX_DiscardUnknown()
- func (m *CreateMomentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateMomentRequest) XXX_Merge(src proto.Message)
- func (*CreateMomentRequest) XXX_MessageName() string
- func (m *CreateMomentRequest) XXX_Size() int
- func (m *CreateMomentRequest) XXX_Unmarshal(b []byte) error
- type CreateReplyRequest
- func (*CreateReplyRequest) Descriptor() ([]byte, []int)
- func (m *CreateReplyRequest) GetEntityID() string
- func (m *CreateReplyRequest) GetImageURLs() []string
- func (m *CreateReplyRequest) GetMessage() string
- func (m *CreateReplyRequest) GetMomentID() string
- func (m *CreateReplyRequest) GetVideoURLs() []string
- func (m *CreateReplyRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateReplyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateReplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateReplyRequest) ProtoMessage()
- func (m *CreateReplyRequest) Reset()
- func (m *CreateReplyRequest) Size() (n int)
- func (m *CreateReplyRequest) String() string
- func (m *CreateReplyRequest) Unmarshal(dAtA []byte) error
- func (this *CreateReplyRequest) Validate() error
- func (m *CreateReplyRequest) XXX_DiscardUnknown()
- func (m *CreateReplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateReplyRequest) XXX_Merge(src proto.Message)
- func (*CreateReplyRequest) XXX_MessageName() string
- func (m *CreateReplyRequest) XXX_Size() int
- func (m *CreateReplyRequest) XXX_Unmarshal(b []byte) error
- type DeleteMomentByIDRequest
- func (*DeleteMomentByIDRequest) Descriptor() ([]byte, []int)
- func (m *DeleteMomentByIDRequest) GetID() string
- func (m *DeleteMomentByIDRequest) Marshal() (dAtA []byte, err error)
- func (m *DeleteMomentByIDRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteMomentByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteMomentByIDRequest) ProtoMessage()
- func (m *DeleteMomentByIDRequest) Reset()
- func (m *DeleteMomentByIDRequest) Size() (n int)
- func (m *DeleteMomentByIDRequest) String() string
- func (m *DeleteMomentByIDRequest) Unmarshal(dAtA []byte) error
- func (this *DeleteMomentByIDRequest) Validate() error
- func (m *DeleteMomentByIDRequest) XXX_DiscardUnknown()
- func (m *DeleteMomentByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteMomentByIDRequest) XXX_Merge(src proto.Message)
- func (*DeleteMomentByIDRequest) XXX_MessageName() string
- func (m *DeleteMomentByIDRequest) XXX_Size() int
- func (m *DeleteMomentByIDRequest) XXX_Unmarshal(b []byte) error
- type DeleteReplyByIDRequest
- func (*DeleteReplyByIDRequest) Descriptor() ([]byte, []int)
- func (m *DeleteReplyByIDRequest) GetID() string
- func (m *DeleteReplyByIDRequest) Marshal() (dAtA []byte, err error)
- func (m *DeleteReplyByIDRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteReplyByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteReplyByIDRequest) ProtoMessage()
- func (m *DeleteReplyByIDRequest) Reset()
- func (m *DeleteReplyByIDRequest) Size() (n int)
- func (m *DeleteReplyByIDRequest) String() string
- func (m *DeleteReplyByIDRequest) Unmarshal(dAtA []byte) error
- func (this *DeleteReplyByIDRequest) Validate() error
- func (m *DeleteReplyByIDRequest) XXX_DiscardUnknown()
- func (m *DeleteReplyByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteReplyByIDRequest) XXX_Merge(src proto.Message)
- func (*DeleteReplyByIDRequest) XXX_MessageName() string
- func (m *DeleteReplyByIDRequest) XXX_Size() int
- func (m *DeleteReplyByIDRequest) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (m *Empty) Marshal() (dAtA []byte, err error)
- func (m *Empty) MarshalTo(dAtA []byte) (int, error)
- func (m *Empty) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) Size() (n int)
- func (m *Empty) String() string
- func (m *Empty) Unmarshal(dAtA []byte) error
- func (this *Empty) Validate() error
- 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 (*Empty) XXX_MessageName() string
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type GetAllMomentsByEntityIDRequest
- func (*GetAllMomentsByEntityIDRequest) Descriptor() ([]byte, []int)
- func (m *GetAllMomentsByEntityIDRequest) GetEntityID() string
- func (m *GetAllMomentsByEntityIDRequest) Marshal() (dAtA []byte, err error)
- func (m *GetAllMomentsByEntityIDRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAllMomentsByEntityIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAllMomentsByEntityIDRequest) ProtoMessage()
- func (m *GetAllMomentsByEntityIDRequest) Reset()
- func (m *GetAllMomentsByEntityIDRequest) Size() (n int)
- func (m *GetAllMomentsByEntityIDRequest) String() string
- func (m *GetAllMomentsByEntityIDRequest) Unmarshal(dAtA []byte) error
- func (this *GetAllMomentsByEntityIDRequest) Validate() error
- func (m *GetAllMomentsByEntityIDRequest) XXX_DiscardUnknown()
- func (m *GetAllMomentsByEntityIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAllMomentsByEntityIDRequest) XXX_Merge(src proto.Message)
- func (*GetAllMomentsByEntityIDRequest) XXX_MessageName() string
- func (m *GetAllMomentsByEntityIDRequest) XXX_Size() int
- func (m *GetAllMomentsByEntityIDRequest) XXX_Unmarshal(b []byte) error
- type GetMomentByIDRequest
- func (*GetMomentByIDRequest) Descriptor() ([]byte, []int)
- func (m *GetMomentByIDRequest) GetID() string
- func (m *GetMomentByIDRequest) Marshal() (dAtA []byte, err error)
- func (m *GetMomentByIDRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetMomentByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetMomentByIDRequest) ProtoMessage()
- func (m *GetMomentByIDRequest) Reset()
- func (m *GetMomentByIDRequest) Size() (n int)
- func (m *GetMomentByIDRequest) String() string
- func (m *GetMomentByIDRequest) Unmarshal(dAtA []byte) error
- func (this *GetMomentByIDRequest) Validate() error
- func (m *GetMomentByIDRequest) XXX_DiscardUnknown()
- func (m *GetMomentByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetMomentByIDRequest) XXX_Merge(src proto.Message)
- func (*GetMomentByIDRequest) XXX_MessageName() string
- func (m *GetMomentByIDRequest) XXX_Size() int
- func (m *GetMomentByIDRequest) XXX_Unmarshal(b []byte) error
- type GetReplyByIDRequest
- func (*GetReplyByIDRequest) Descriptor() ([]byte, []int)
- func (m *GetReplyByIDRequest) GetID() string
- func (m *GetReplyByIDRequest) GetMomentID() string
- func (m *GetReplyByIDRequest) Marshal() (dAtA []byte, err error)
- func (m *GetReplyByIDRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetReplyByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetReplyByIDRequest) ProtoMessage()
- func (m *GetReplyByIDRequest) Reset()
- func (m *GetReplyByIDRequest) Size() (n int)
- func (m *GetReplyByIDRequest) String() string
- func (m *GetReplyByIDRequest) Unmarshal(dAtA []byte) error
- func (this *GetReplyByIDRequest) Validate() error
- func (m *GetReplyByIDRequest) XXX_DiscardUnknown()
- func (m *GetReplyByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetReplyByIDRequest) XXX_Merge(src proto.Message)
- func (*GetReplyByIDRequest) XXX_MessageName() string
- func (m *GetReplyByIDRequest) XXX_Size() int
- func (m *GetReplyByIDRequest) XXX_Unmarshal(b []byte) error
- type MomentDTO
- func (*MomentDTO) Descriptor() ([]byte, []int)
- func (m *MomentDTO) GetCreatedAt() *types.Timestamp
- func (m *MomentDTO) GetEntityID() string
- func (m *MomentDTO) GetID() string
- func (m *MomentDTO) GetImageURLs() []string
- func (m *MomentDTO) GetLikedEntities() []string
- func (m *MomentDTO) GetMessage() string
- func (m *MomentDTO) GetReplies() []*ReplyDTO
- func (m *MomentDTO) GetTitle() string
- func (m *MomentDTO) GetVideoURLs() []string
- func (m *MomentDTO) Marshal() (dAtA []byte, err error)
- func (m *MomentDTO) MarshalTo(dAtA []byte) (int, error)
- func (m *MomentDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MomentDTO) ProtoMessage()
- func (m *MomentDTO) Reset()
- func (m *MomentDTO) Size() (n int)
- func (m *MomentDTO) String() string
- func (m *MomentDTO) Unmarshal(dAtA []byte) error
- func (this *MomentDTO) Validate() error
- func (m *MomentDTO) XXX_DiscardUnknown()
- func (m *MomentDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MomentDTO) XXX_Merge(src proto.Message)
- func (*MomentDTO) XXX_MessageName() string
- func (m *MomentDTO) XXX_Size() int
- func (m *MomentDTO) XXX_Unmarshal(b []byte) error
- type MomentServiceClient
- type MomentServiceServer
- type RepeatedMomentDTO
- func (*RepeatedMomentDTO) Descriptor() ([]byte, []int)
- func (m *RepeatedMomentDTO) GetResults() []*MomentDTO
- func (m *RepeatedMomentDTO) Marshal() (dAtA []byte, err error)
- func (m *RepeatedMomentDTO) MarshalTo(dAtA []byte) (int, error)
- func (m *RepeatedMomentDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RepeatedMomentDTO) ProtoMessage()
- func (m *RepeatedMomentDTO) Reset()
- func (m *RepeatedMomentDTO) Size() (n int)
- func (m *RepeatedMomentDTO) String() string
- func (m *RepeatedMomentDTO) Unmarshal(dAtA []byte) error
- func (this *RepeatedMomentDTO) Validate() error
- func (m *RepeatedMomentDTO) XXX_DiscardUnknown()
- func (m *RepeatedMomentDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RepeatedMomentDTO) XXX_Merge(src proto.Message)
- func (*RepeatedMomentDTO) XXX_MessageName() string
- func (m *RepeatedMomentDTO) XXX_Size() int
- func (m *RepeatedMomentDTO) XXX_Unmarshal(b []byte) error
- type RepeatedReplyDTO
- func (*RepeatedReplyDTO) Descriptor() ([]byte, []int)
- func (m *RepeatedReplyDTO) GetResults() []*ReplyDTO
- func (m *RepeatedReplyDTO) Marshal() (dAtA []byte, err error)
- func (m *RepeatedReplyDTO) MarshalTo(dAtA []byte) (int, error)
- func (m *RepeatedReplyDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RepeatedReplyDTO) ProtoMessage()
- func (m *RepeatedReplyDTO) Reset()
- func (m *RepeatedReplyDTO) Size() (n int)
- func (m *RepeatedReplyDTO) String() string
- func (m *RepeatedReplyDTO) Unmarshal(dAtA []byte) error
- func (this *RepeatedReplyDTO) Validate() error
- func (m *RepeatedReplyDTO) XXX_DiscardUnknown()
- func (m *RepeatedReplyDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RepeatedReplyDTO) XXX_Merge(src proto.Message)
- func (*RepeatedReplyDTO) XXX_MessageName() string
- func (m *RepeatedReplyDTO) XXX_Size() int
- func (m *RepeatedReplyDTO) XXX_Unmarshal(b []byte) error
- type ReplyDTO
- func (*ReplyDTO) Descriptor() ([]byte, []int)
- func (m *ReplyDTO) GetCreatedAt() *types.Timestamp
- func (m *ReplyDTO) GetEntityID() string
- func (m *ReplyDTO) GetID() string
- func (m *ReplyDTO) GetImageURLs() []string
- func (m *ReplyDTO) GetMessage() string
- func (m *ReplyDTO) GetVideoURLs() []string
- func (m *ReplyDTO) Marshal() (dAtA []byte, err error)
- func (m *ReplyDTO) MarshalTo(dAtA []byte) (int, error)
- func (m *ReplyDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ReplyDTO) ProtoMessage()
- func (m *ReplyDTO) Reset()
- func (m *ReplyDTO) Size() (n int)
- func (m *ReplyDTO) String() string
- func (m *ReplyDTO) Unmarshal(dAtA []byte) error
- func (this *ReplyDTO) Validate() error
- func (m *ReplyDTO) XXX_DiscardUnknown()
- func (m *ReplyDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyDTO) XXX_Merge(src proto.Message)
- func (*ReplyDTO) XXX_MessageName() string
- func (m *ReplyDTO) XXX_Size() int
- func (m *ReplyDTO) XXX_Unmarshal(b []byte) error
- type UnimplementedMomentServiceServer
- func (*UnimplementedMomentServiceServer) CreateMoment(ctx context.Context, req *CreateMomentRequest) (*MomentDTO, error)
- func (*UnimplementedMomentServiceServer) CreateReply(ctx context.Context, req *CreateReplyRequest) (*ReplyDTO, error)
- func (*UnimplementedMomentServiceServer) DeleteMomentByID(ctx context.Context, req *DeleteMomentByIDRequest) (*BoolResponse, error)
- func (*UnimplementedMomentServiceServer) DeleteReplyByID(ctx context.Context, req *DeleteReplyByIDRequest) (*BoolResponse, error)
- func (*UnimplementedMomentServiceServer) GetAllMomentsByEntityID(ctx context.Context, req *GetAllMomentsByEntityIDRequest) (*RepeatedMomentDTO, error)
- func (*UnimplementedMomentServiceServer) GetMomentByID(ctx context.Context, req *GetMomentByIDRequest) (*MomentDTO, error)
- func (*UnimplementedMomentServiceServer) GetReplyByID(ctx context.Context, req *GetReplyByIDRequest) (*ReplyDTO, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterMomentServiceHandler ¶
func RegisterMomentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMomentServiceHandler registers the http handlers for service MomentService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMomentServiceHandlerClient ¶
func RegisterMomentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MomentServiceClient) error
RegisterMomentServiceHandlerClient registers the http handlers for service MomentService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MomentServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MomentServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MomentServiceClient" to call the correct interceptors.
func RegisterMomentServiceHandlerFromEndpoint ¶
func RegisterMomentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMomentServiceHandlerFromEndpoint is same as RegisterMomentServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMomentServiceHandlerServer ¶
func RegisterMomentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MomentServiceServer) error
RegisterMomentServiceHandlerServer registers the http handlers for service MomentService to "mux". UnaryRPC :call MomentServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterMomentServiceServer ¶
func RegisterMomentServiceServer(s *grpc.Server, srv MomentServiceServer)
Types ¶
type BoolResponse ¶
type BoolResponse struct { IsSuccess bool `protobuf:"varint,1,opt,name=IsSuccess,proto3" json:"IsSuccess,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BoolResponse) Descriptor ¶
func (*BoolResponse) Descriptor() ([]byte, []int)
func (*BoolResponse) GetIsSuccess ¶
func (m *BoolResponse) GetIsSuccess() bool
func (*BoolResponse) Marshal ¶
func (m *BoolResponse) Marshal() (dAtA []byte, err error)
func (*BoolResponse) MarshalToSizedBuffer ¶
func (m *BoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BoolResponse) ProtoMessage ¶
func (*BoolResponse) ProtoMessage()
func (*BoolResponse) Reset ¶
func (m *BoolResponse) Reset()
func (*BoolResponse) Size ¶
func (m *BoolResponse) Size() (n int)
func (*BoolResponse) String ¶
func (m *BoolResponse) String() string
func (*BoolResponse) Unmarshal ¶
func (m *BoolResponse) Unmarshal(dAtA []byte) error
func (*BoolResponse) Validate ¶
func (this *BoolResponse) Validate() error
func (*BoolResponse) XXX_DiscardUnknown ¶
func (m *BoolResponse) XXX_DiscardUnknown()
func (*BoolResponse) XXX_Marshal ¶
func (m *BoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BoolResponse) XXX_Merge ¶
func (m *BoolResponse) XXX_Merge(src proto.Message)
func (*BoolResponse) XXX_MessageName ¶
func (*BoolResponse) XXX_MessageName() string
func (*BoolResponse) XXX_Size ¶
func (m *BoolResponse) XXX_Size() int
func (*BoolResponse) XXX_Unmarshal ¶
func (m *BoolResponse) XXX_Unmarshal(b []byte) error
type CreateMomentRequest ¶
type CreateMomentRequest struct { EntityID string `protobuf:"bytes,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"` Title string `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"` Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"` ImageURLs []string `protobuf:"bytes,4,rep,name=ImageURLs,proto3" json:"ImageURLs,omitempty"` VideoURLs []string `protobuf:"bytes,5,rep,name=VideoURLs,proto3" json:"VideoURLs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateMomentRequest) Descriptor ¶
func (*CreateMomentRequest) Descriptor() ([]byte, []int)
func (*CreateMomentRequest) GetEntityID ¶
func (m *CreateMomentRequest) GetEntityID() string
func (*CreateMomentRequest) GetImageURLs ¶
func (m *CreateMomentRequest) GetImageURLs() []string
func (*CreateMomentRequest) GetMessage ¶
func (m *CreateMomentRequest) GetMessage() string
func (*CreateMomentRequest) GetTitle ¶
func (m *CreateMomentRequest) GetTitle() string
func (*CreateMomentRequest) GetVideoURLs ¶
func (m *CreateMomentRequest) GetVideoURLs() []string
func (*CreateMomentRequest) Marshal ¶
func (m *CreateMomentRequest) Marshal() (dAtA []byte, err error)
func (*CreateMomentRequest) MarshalTo ¶
func (m *CreateMomentRequest) MarshalTo(dAtA []byte) (int, error)
func (*CreateMomentRequest) MarshalToSizedBuffer ¶
func (m *CreateMomentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateMomentRequest) ProtoMessage ¶
func (*CreateMomentRequest) ProtoMessage()
func (*CreateMomentRequest) Reset ¶
func (m *CreateMomentRequest) Reset()
func (*CreateMomentRequest) Size ¶
func (m *CreateMomentRequest) Size() (n int)
func (*CreateMomentRequest) String ¶
func (m *CreateMomentRequest) String() string
func (*CreateMomentRequest) Unmarshal ¶
func (m *CreateMomentRequest) Unmarshal(dAtA []byte) error
func (*CreateMomentRequest) Validate ¶
func (this *CreateMomentRequest) Validate() error
func (*CreateMomentRequest) XXX_DiscardUnknown ¶
func (m *CreateMomentRequest) XXX_DiscardUnknown()
func (*CreateMomentRequest) XXX_Marshal ¶
func (m *CreateMomentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateMomentRequest) XXX_Merge ¶
func (m *CreateMomentRequest) XXX_Merge(src proto.Message)
func (*CreateMomentRequest) XXX_MessageName ¶
func (*CreateMomentRequest) XXX_MessageName() string
func (*CreateMomentRequest) XXX_Size ¶
func (m *CreateMomentRequest) XXX_Size() int
func (*CreateMomentRequest) XXX_Unmarshal ¶
func (m *CreateMomentRequest) XXX_Unmarshal(b []byte) error
type CreateReplyRequest ¶
type CreateReplyRequest struct { MomentID string `protobuf:"bytes,1,opt,name=MomentID,proto3" json:"MomentID,omitempty"` EntityID string `protobuf:"bytes,2,opt,name=EntityID,proto3" json:"EntityID,omitempty"` Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"` ImageURLs []string `protobuf:"bytes,4,rep,name=ImageURLs,proto3" json:"ImageURLs,omitempty"` VideoURLs []string `protobuf:"bytes,5,rep,name=VideoURLs,proto3" json:"VideoURLs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateReplyRequest) Descriptor ¶
func (*CreateReplyRequest) Descriptor() ([]byte, []int)
func (*CreateReplyRequest) GetEntityID ¶
func (m *CreateReplyRequest) GetEntityID() string
func (*CreateReplyRequest) GetImageURLs ¶
func (m *CreateReplyRequest) GetImageURLs() []string
func (*CreateReplyRequest) GetMessage ¶
func (m *CreateReplyRequest) GetMessage() string
func (*CreateReplyRequest) GetMomentID ¶
func (m *CreateReplyRequest) GetMomentID() string
func (*CreateReplyRequest) GetVideoURLs ¶
func (m *CreateReplyRequest) GetVideoURLs() []string
func (*CreateReplyRequest) Marshal ¶
func (m *CreateReplyRequest) Marshal() (dAtA []byte, err error)
func (*CreateReplyRequest) MarshalTo ¶
func (m *CreateReplyRequest) MarshalTo(dAtA []byte) (int, error)
func (*CreateReplyRequest) MarshalToSizedBuffer ¶
func (m *CreateReplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateReplyRequest) ProtoMessage ¶
func (*CreateReplyRequest) ProtoMessage()
func (*CreateReplyRequest) Reset ¶
func (m *CreateReplyRequest) Reset()
func (*CreateReplyRequest) Size ¶
func (m *CreateReplyRequest) Size() (n int)
func (*CreateReplyRequest) String ¶
func (m *CreateReplyRequest) String() string
func (*CreateReplyRequest) Unmarshal ¶
func (m *CreateReplyRequest) Unmarshal(dAtA []byte) error
func (*CreateReplyRequest) Validate ¶
func (this *CreateReplyRequest) Validate() error
func (*CreateReplyRequest) XXX_DiscardUnknown ¶
func (m *CreateReplyRequest) XXX_DiscardUnknown()
func (*CreateReplyRequest) XXX_Marshal ¶
func (m *CreateReplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateReplyRequest) XXX_Merge ¶
func (m *CreateReplyRequest) XXX_Merge(src proto.Message)
func (*CreateReplyRequest) XXX_MessageName ¶
func (*CreateReplyRequest) XXX_MessageName() string
func (*CreateReplyRequest) XXX_Size ¶
func (m *CreateReplyRequest) XXX_Size() int
func (*CreateReplyRequest) XXX_Unmarshal ¶
func (m *CreateReplyRequest) XXX_Unmarshal(b []byte) error
type DeleteMomentByIDRequest ¶
type DeleteMomentByIDRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteMomentByIDRequest) Descriptor ¶
func (*DeleteMomentByIDRequest) Descriptor() ([]byte, []int)
func (*DeleteMomentByIDRequest) GetID ¶
func (m *DeleteMomentByIDRequest) GetID() string
func (*DeleteMomentByIDRequest) Marshal ¶
func (m *DeleteMomentByIDRequest) Marshal() (dAtA []byte, err error)
func (*DeleteMomentByIDRequest) MarshalTo ¶
func (m *DeleteMomentByIDRequest) MarshalTo(dAtA []byte) (int, error)
func (*DeleteMomentByIDRequest) MarshalToSizedBuffer ¶
func (m *DeleteMomentByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteMomentByIDRequest) ProtoMessage ¶
func (*DeleteMomentByIDRequest) ProtoMessage()
func (*DeleteMomentByIDRequest) Reset ¶
func (m *DeleteMomentByIDRequest) Reset()
func (*DeleteMomentByIDRequest) Size ¶
func (m *DeleteMomentByIDRequest) Size() (n int)
func (*DeleteMomentByIDRequest) String ¶
func (m *DeleteMomentByIDRequest) String() string
func (*DeleteMomentByIDRequest) Unmarshal ¶
func (m *DeleteMomentByIDRequest) Unmarshal(dAtA []byte) error
func (*DeleteMomentByIDRequest) Validate ¶
func (this *DeleteMomentByIDRequest) Validate() error
func (*DeleteMomentByIDRequest) XXX_DiscardUnknown ¶
func (m *DeleteMomentByIDRequest) XXX_DiscardUnknown()
func (*DeleteMomentByIDRequest) XXX_Marshal ¶
func (m *DeleteMomentByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteMomentByIDRequest) XXX_Merge ¶
func (m *DeleteMomentByIDRequest) XXX_Merge(src proto.Message)
func (*DeleteMomentByIDRequest) XXX_MessageName ¶
func (*DeleteMomentByIDRequest) XXX_MessageName() string
func (*DeleteMomentByIDRequest) XXX_Size ¶
func (m *DeleteMomentByIDRequest) XXX_Size() int
func (*DeleteMomentByIDRequest) XXX_Unmarshal ¶
func (m *DeleteMomentByIDRequest) XXX_Unmarshal(b []byte) error
type DeleteReplyByIDRequest ¶
type DeleteReplyByIDRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteReplyByIDRequest) Descriptor ¶
func (*DeleteReplyByIDRequest) Descriptor() ([]byte, []int)
func (*DeleteReplyByIDRequest) GetID ¶
func (m *DeleteReplyByIDRequest) GetID() string
func (*DeleteReplyByIDRequest) Marshal ¶
func (m *DeleteReplyByIDRequest) Marshal() (dAtA []byte, err error)
func (*DeleteReplyByIDRequest) MarshalTo ¶
func (m *DeleteReplyByIDRequest) MarshalTo(dAtA []byte) (int, error)
func (*DeleteReplyByIDRequest) MarshalToSizedBuffer ¶
func (m *DeleteReplyByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteReplyByIDRequest) ProtoMessage ¶
func (*DeleteReplyByIDRequest) ProtoMessage()
func (*DeleteReplyByIDRequest) Reset ¶
func (m *DeleteReplyByIDRequest) Reset()
func (*DeleteReplyByIDRequest) Size ¶
func (m *DeleteReplyByIDRequest) Size() (n int)
func (*DeleteReplyByIDRequest) String ¶
func (m *DeleteReplyByIDRequest) String() string
func (*DeleteReplyByIDRequest) Unmarshal ¶
func (m *DeleteReplyByIDRequest) Unmarshal(dAtA []byte) error
func (*DeleteReplyByIDRequest) Validate ¶
func (this *DeleteReplyByIDRequest) Validate() error
func (*DeleteReplyByIDRequest) XXX_DiscardUnknown ¶
func (m *DeleteReplyByIDRequest) XXX_DiscardUnknown()
func (*DeleteReplyByIDRequest) XXX_Marshal ¶
func (m *DeleteReplyByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteReplyByIDRequest) XXX_Merge ¶
func (m *DeleteReplyByIDRequest) XXX_Merge(src proto.Message)
func (*DeleteReplyByIDRequest) XXX_MessageName ¶
func (*DeleteReplyByIDRequest) XXX_MessageName() string
func (*DeleteReplyByIDRequest) XXX_Size ¶
func (m *DeleteReplyByIDRequest) XXX_Size() int
func (*DeleteReplyByIDRequest) XXX_Unmarshal ¶
func (m *DeleteReplyByIDRequest) XXX_Unmarshal(b []byte) error
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_MessageName ¶
func (*Empty) XXX_Unmarshal ¶
type GetAllMomentsByEntityIDRequest ¶
type GetAllMomentsByEntityIDRequest struct { EntityID string `protobuf:"bytes,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAllMomentsByEntityIDRequest) Descriptor ¶
func (*GetAllMomentsByEntityIDRequest) Descriptor() ([]byte, []int)
func (*GetAllMomentsByEntityIDRequest) GetEntityID ¶
func (m *GetAllMomentsByEntityIDRequest) GetEntityID() string
func (*GetAllMomentsByEntityIDRequest) Marshal ¶
func (m *GetAllMomentsByEntityIDRequest) Marshal() (dAtA []byte, err error)
func (*GetAllMomentsByEntityIDRequest) MarshalTo ¶
func (m *GetAllMomentsByEntityIDRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetAllMomentsByEntityIDRequest) MarshalToSizedBuffer ¶
func (m *GetAllMomentsByEntityIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetAllMomentsByEntityIDRequest) ProtoMessage ¶
func (*GetAllMomentsByEntityIDRequest) ProtoMessage()
func (*GetAllMomentsByEntityIDRequest) Reset ¶
func (m *GetAllMomentsByEntityIDRequest) Reset()
func (*GetAllMomentsByEntityIDRequest) Size ¶
func (m *GetAllMomentsByEntityIDRequest) Size() (n int)
func (*GetAllMomentsByEntityIDRequest) String ¶
func (m *GetAllMomentsByEntityIDRequest) String() string
func (*GetAllMomentsByEntityIDRequest) Unmarshal ¶
func (m *GetAllMomentsByEntityIDRequest) Unmarshal(dAtA []byte) error
func (*GetAllMomentsByEntityIDRequest) Validate ¶
func (this *GetAllMomentsByEntityIDRequest) Validate() error
func (*GetAllMomentsByEntityIDRequest) XXX_DiscardUnknown ¶
func (m *GetAllMomentsByEntityIDRequest) XXX_DiscardUnknown()
func (*GetAllMomentsByEntityIDRequest) XXX_Marshal ¶
func (m *GetAllMomentsByEntityIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAllMomentsByEntityIDRequest) XXX_Merge ¶
func (m *GetAllMomentsByEntityIDRequest) XXX_Merge(src proto.Message)
func (*GetAllMomentsByEntityIDRequest) XXX_MessageName ¶
func (*GetAllMomentsByEntityIDRequest) XXX_MessageName() string
func (*GetAllMomentsByEntityIDRequest) XXX_Size ¶
func (m *GetAllMomentsByEntityIDRequest) XXX_Size() int
func (*GetAllMomentsByEntityIDRequest) XXX_Unmarshal ¶
func (m *GetAllMomentsByEntityIDRequest) XXX_Unmarshal(b []byte) error
type GetMomentByIDRequest ¶
type GetMomentByIDRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetMomentByIDRequest) Descriptor ¶
func (*GetMomentByIDRequest) Descriptor() ([]byte, []int)
func (*GetMomentByIDRequest) GetID ¶
func (m *GetMomentByIDRequest) GetID() string
func (*GetMomentByIDRequest) Marshal ¶
func (m *GetMomentByIDRequest) Marshal() (dAtA []byte, err error)
func (*GetMomentByIDRequest) MarshalTo ¶
func (m *GetMomentByIDRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetMomentByIDRequest) MarshalToSizedBuffer ¶
func (m *GetMomentByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetMomentByIDRequest) ProtoMessage ¶
func (*GetMomentByIDRequest) ProtoMessage()
func (*GetMomentByIDRequest) Reset ¶
func (m *GetMomentByIDRequest) Reset()
func (*GetMomentByIDRequest) Size ¶
func (m *GetMomentByIDRequest) Size() (n int)
func (*GetMomentByIDRequest) String ¶
func (m *GetMomentByIDRequest) String() string
func (*GetMomentByIDRequest) Unmarshal ¶
func (m *GetMomentByIDRequest) Unmarshal(dAtA []byte) error
func (*GetMomentByIDRequest) Validate ¶
func (this *GetMomentByIDRequest) Validate() error
func (*GetMomentByIDRequest) XXX_DiscardUnknown ¶
func (m *GetMomentByIDRequest) XXX_DiscardUnknown()
func (*GetMomentByIDRequest) XXX_Marshal ¶
func (m *GetMomentByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetMomentByIDRequest) XXX_Merge ¶
func (m *GetMomentByIDRequest) XXX_Merge(src proto.Message)
func (*GetMomentByIDRequest) XXX_MessageName ¶
func (*GetMomentByIDRequest) XXX_MessageName() string
func (*GetMomentByIDRequest) XXX_Size ¶
func (m *GetMomentByIDRequest) XXX_Size() int
func (*GetMomentByIDRequest) XXX_Unmarshal ¶
func (m *GetMomentByIDRequest) XXX_Unmarshal(b []byte) error
type GetReplyByIDRequest ¶
type GetReplyByIDRequest struct { MomentID string `protobuf:"bytes,1,opt,name=MomentID,proto3" json:"MomentID,omitempty"` ID string `protobuf:"bytes,2,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetReplyByIDRequest) Descriptor ¶
func (*GetReplyByIDRequest) Descriptor() ([]byte, []int)
func (*GetReplyByIDRequest) GetID ¶
func (m *GetReplyByIDRequest) GetID() string
func (*GetReplyByIDRequest) GetMomentID ¶
func (m *GetReplyByIDRequest) GetMomentID() string
func (*GetReplyByIDRequest) Marshal ¶
func (m *GetReplyByIDRequest) Marshal() (dAtA []byte, err error)
func (*GetReplyByIDRequest) MarshalTo ¶
func (m *GetReplyByIDRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetReplyByIDRequest) MarshalToSizedBuffer ¶
func (m *GetReplyByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetReplyByIDRequest) ProtoMessage ¶
func (*GetReplyByIDRequest) ProtoMessage()
func (*GetReplyByIDRequest) Reset ¶
func (m *GetReplyByIDRequest) Reset()
func (*GetReplyByIDRequest) Size ¶
func (m *GetReplyByIDRequest) Size() (n int)
func (*GetReplyByIDRequest) String ¶
func (m *GetReplyByIDRequest) String() string
func (*GetReplyByIDRequest) Unmarshal ¶
func (m *GetReplyByIDRequest) Unmarshal(dAtA []byte) error
func (*GetReplyByIDRequest) Validate ¶
func (this *GetReplyByIDRequest) Validate() error
func (*GetReplyByIDRequest) XXX_DiscardUnknown ¶
func (m *GetReplyByIDRequest) XXX_DiscardUnknown()
func (*GetReplyByIDRequest) XXX_Marshal ¶
func (m *GetReplyByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetReplyByIDRequest) XXX_Merge ¶
func (m *GetReplyByIDRequest) XXX_Merge(src proto.Message)
func (*GetReplyByIDRequest) XXX_MessageName ¶
func (*GetReplyByIDRequest) XXX_MessageName() string
func (*GetReplyByIDRequest) XXX_Size ¶
func (m *GetReplyByIDRequest) XXX_Size() int
func (*GetReplyByIDRequest) XXX_Unmarshal ¶
func (m *GetReplyByIDRequest) XXX_Unmarshal(b []byte) error
type MomentDTO ¶
type MomentDTO struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` EntityID string `protobuf:"bytes,2,opt,name=EntityID,proto3" json:"EntityID,omitempty"` Title string `protobuf:"bytes,3,opt,name=Title,proto3" json:"Title,omitempty"` Message string `protobuf:"bytes,4,opt,name=Message,proto3" json:"Message,omitempty"` ImageURLs []string `protobuf:"bytes,5,rep,name=ImageURLs,proto3" json:"ImageURLs,omitempty"` VideoURLs []string `protobuf:"bytes,6,rep,name=VideoURLs,proto3" json:"VideoURLs,omitempty"` Replies []*ReplyDTO `protobuf:"bytes,7,rep,name=Replies,proto3" json:"Replies,omitempty"` LikedEntities []string `protobuf:"bytes,8,rep,name=LikedEntities,proto3" json:"LikedEntities,omitempty"` CreatedAt *types.Timestamp `protobuf:"bytes,51,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MomentDTO) Descriptor ¶
func (*MomentDTO) GetCreatedAt ¶
func (*MomentDTO) GetEntityID ¶
func (*MomentDTO) GetImageURLs ¶
func (*MomentDTO) GetLikedEntities ¶
func (*MomentDTO) GetMessage ¶
func (*MomentDTO) GetReplies ¶
func (*MomentDTO) GetVideoURLs ¶
func (*MomentDTO) MarshalToSizedBuffer ¶
func (*MomentDTO) ProtoMessage ¶
func (*MomentDTO) ProtoMessage()
func (*MomentDTO) XXX_DiscardUnknown ¶
func (m *MomentDTO) XXX_DiscardUnknown()
func (*MomentDTO) XXX_Marshal ¶
func (*MomentDTO) XXX_MessageName ¶
func (*MomentDTO) XXX_Unmarshal ¶
type MomentServiceClient ¶
type MomentServiceClient interface { CreateMoment(ctx context.Context, in *CreateMomentRequest, opts ...grpc.CallOption) (*MomentDTO, error) GetAllMomentsByEntityID(ctx context.Context, in *GetAllMomentsByEntityIDRequest, opts ...grpc.CallOption) (*RepeatedMomentDTO, error) GetMomentByID(ctx context.Context, in *GetMomentByIDRequest, opts ...grpc.CallOption) (*MomentDTO, error) DeleteMomentByID(ctx context.Context, in *DeleteMomentByIDRequest, opts ...grpc.CallOption) (*BoolResponse, error) CreateReply(ctx context.Context, in *CreateReplyRequest, opts ...grpc.CallOption) (*ReplyDTO, error) GetReplyByID(ctx context.Context, in *GetReplyByIDRequest, opts ...grpc.CallOption) (*ReplyDTO, error) DeleteReplyByID(ctx context.Context, in *DeleteReplyByIDRequest, opts ...grpc.CallOption) (*BoolResponse, error) }
MomentServiceClient is the client API for MomentService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMomentServiceClient ¶
func NewMomentServiceClient(cc *grpc.ClientConn) MomentServiceClient
type MomentServiceServer ¶
type MomentServiceServer interface { CreateMoment(context.Context, *CreateMomentRequest) (*MomentDTO, error) GetAllMomentsByEntityID(context.Context, *GetAllMomentsByEntityIDRequest) (*RepeatedMomentDTO, error) GetMomentByID(context.Context, *GetMomentByIDRequest) (*MomentDTO, error) DeleteMomentByID(context.Context, *DeleteMomentByIDRequest) (*BoolResponse, error) CreateReply(context.Context, *CreateReplyRequest) (*ReplyDTO, error) GetReplyByID(context.Context, *GetReplyByIDRequest) (*ReplyDTO, error) DeleteReplyByID(context.Context, *DeleteReplyByIDRequest) (*BoolResponse, error) }
MomentServiceServer is the server API for MomentService service.
type RepeatedMomentDTO ¶
type RepeatedMomentDTO struct { Results []*MomentDTO `protobuf:"bytes,1,rep,name=Results,proto3" json:"Results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RepeatedMomentDTO) Descriptor ¶
func (*RepeatedMomentDTO) Descriptor() ([]byte, []int)
func (*RepeatedMomentDTO) GetResults ¶
func (m *RepeatedMomentDTO) GetResults() []*MomentDTO
func (*RepeatedMomentDTO) Marshal ¶
func (m *RepeatedMomentDTO) Marshal() (dAtA []byte, err error)
func (*RepeatedMomentDTO) MarshalTo ¶
func (m *RepeatedMomentDTO) MarshalTo(dAtA []byte) (int, error)
func (*RepeatedMomentDTO) MarshalToSizedBuffer ¶
func (m *RepeatedMomentDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RepeatedMomentDTO) ProtoMessage ¶
func (*RepeatedMomentDTO) ProtoMessage()
func (*RepeatedMomentDTO) Reset ¶
func (m *RepeatedMomentDTO) Reset()
func (*RepeatedMomentDTO) Size ¶
func (m *RepeatedMomentDTO) Size() (n int)
func (*RepeatedMomentDTO) String ¶
func (m *RepeatedMomentDTO) String() string
func (*RepeatedMomentDTO) Unmarshal ¶
func (m *RepeatedMomentDTO) Unmarshal(dAtA []byte) error
func (*RepeatedMomentDTO) Validate ¶
func (this *RepeatedMomentDTO) Validate() error
func (*RepeatedMomentDTO) XXX_DiscardUnknown ¶
func (m *RepeatedMomentDTO) XXX_DiscardUnknown()
func (*RepeatedMomentDTO) XXX_Marshal ¶
func (m *RepeatedMomentDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RepeatedMomentDTO) XXX_Merge ¶
func (m *RepeatedMomentDTO) XXX_Merge(src proto.Message)
func (*RepeatedMomentDTO) XXX_MessageName ¶
func (*RepeatedMomentDTO) XXX_MessageName() string
func (*RepeatedMomentDTO) XXX_Size ¶
func (m *RepeatedMomentDTO) XXX_Size() int
func (*RepeatedMomentDTO) XXX_Unmarshal ¶
func (m *RepeatedMomentDTO) XXX_Unmarshal(b []byte) error
type RepeatedReplyDTO ¶
type RepeatedReplyDTO struct { Results []*ReplyDTO `protobuf:"bytes,1,rep,name=Results,proto3" json:"Results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RepeatedReplyDTO) Descriptor ¶
func (*RepeatedReplyDTO) Descriptor() ([]byte, []int)
func (*RepeatedReplyDTO) GetResults ¶
func (m *RepeatedReplyDTO) GetResults() []*ReplyDTO
func (*RepeatedReplyDTO) Marshal ¶
func (m *RepeatedReplyDTO) Marshal() (dAtA []byte, err error)
func (*RepeatedReplyDTO) MarshalToSizedBuffer ¶
func (m *RepeatedReplyDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RepeatedReplyDTO) ProtoMessage ¶
func (*RepeatedReplyDTO) ProtoMessage()
func (*RepeatedReplyDTO) Reset ¶
func (m *RepeatedReplyDTO) Reset()
func (*RepeatedReplyDTO) Size ¶
func (m *RepeatedReplyDTO) Size() (n int)
func (*RepeatedReplyDTO) String ¶
func (m *RepeatedReplyDTO) String() string
func (*RepeatedReplyDTO) Unmarshal ¶
func (m *RepeatedReplyDTO) Unmarshal(dAtA []byte) error
func (*RepeatedReplyDTO) Validate ¶
func (this *RepeatedReplyDTO) Validate() error
func (*RepeatedReplyDTO) XXX_DiscardUnknown ¶
func (m *RepeatedReplyDTO) XXX_DiscardUnknown()
func (*RepeatedReplyDTO) XXX_Marshal ¶
func (m *RepeatedReplyDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RepeatedReplyDTO) XXX_Merge ¶
func (m *RepeatedReplyDTO) XXX_Merge(src proto.Message)
func (*RepeatedReplyDTO) XXX_MessageName ¶
func (*RepeatedReplyDTO) XXX_MessageName() string
func (*RepeatedReplyDTO) XXX_Size ¶
func (m *RepeatedReplyDTO) XXX_Size() int
func (*RepeatedReplyDTO) XXX_Unmarshal ¶
func (m *RepeatedReplyDTO) XXX_Unmarshal(b []byte) error
type ReplyDTO ¶
type ReplyDTO struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` EntityID string `protobuf:"bytes,2,opt,name=EntityID,proto3" json:"EntityID,omitempty"` Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"` ImageURLs []string `protobuf:"bytes,4,rep,name=ImageURLs,proto3" json:"ImageURLs,omitempty"` VideoURLs []string `protobuf:"bytes,5,rep,name=VideoURLs,proto3" json:"VideoURLs,omitempty"` CreatedAt *types.Timestamp `protobuf:"bytes,51,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReplyDTO) Descriptor ¶
func (*ReplyDTO) GetCreatedAt ¶
func (*ReplyDTO) GetEntityID ¶
func (*ReplyDTO) GetImageURLs ¶
func (*ReplyDTO) GetMessage ¶
func (*ReplyDTO) GetVideoURLs ¶
func (*ReplyDTO) MarshalToSizedBuffer ¶
func (*ReplyDTO) ProtoMessage ¶
func (*ReplyDTO) ProtoMessage()
func (*ReplyDTO) XXX_DiscardUnknown ¶
func (m *ReplyDTO) XXX_DiscardUnknown()
func (*ReplyDTO) XXX_Marshal ¶
func (*ReplyDTO) XXX_MessageName ¶
func (*ReplyDTO) XXX_Unmarshal ¶
type UnimplementedMomentServiceServer ¶
type UnimplementedMomentServiceServer struct { }
UnimplementedMomentServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMomentServiceServer) CreateMoment ¶
func (*UnimplementedMomentServiceServer) CreateMoment(ctx context.Context, req *CreateMomentRequest) (*MomentDTO, error)
func (*UnimplementedMomentServiceServer) CreateReply ¶
func (*UnimplementedMomentServiceServer) CreateReply(ctx context.Context, req *CreateReplyRequest) (*ReplyDTO, error)
func (*UnimplementedMomentServiceServer) DeleteMomentByID ¶
func (*UnimplementedMomentServiceServer) DeleteMomentByID(ctx context.Context, req *DeleteMomentByIDRequest) (*BoolResponse, error)
func (*UnimplementedMomentServiceServer) DeleteReplyByID ¶
func (*UnimplementedMomentServiceServer) DeleteReplyByID(ctx context.Context, req *DeleteReplyByIDRequest) (*BoolResponse, error)
func (*UnimplementedMomentServiceServer) GetAllMomentsByEntityID ¶
func (*UnimplementedMomentServiceServer) GetAllMomentsByEntityID(ctx context.Context, req *GetAllMomentsByEntityIDRequest) (*RepeatedMomentDTO, error)
func (*UnimplementedMomentServiceServer) GetMomentByID ¶
func (*UnimplementedMomentServiceServer) GetMomentByID(ctx context.Context, req *GetMomentByIDRequest) (*MomentDTO, error)
func (*UnimplementedMomentServiceServer) GetReplyByID ¶
func (*UnimplementedMomentServiceServer) GetReplyByID(ctx context.Context, req *GetReplyByIDRequest) (*ReplyDTO, error)