moment

package
v0.0.0-...-418b934 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package moment is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMoment        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMoment          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMoment = fmt.Errorf("proto: unexpected end of group")
)

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) MarshalTo

func (m *BoolResponse) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Empty) Marshal

func (m *Empty) Marshal() (dAtA []byte, err error)

func (*Empty) MarshalTo

func (m *Empty) MarshalTo(dAtA []byte) (int, error)

func (*Empty) MarshalToSizedBuffer

func (m *Empty) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) Size

func (m *Empty) Size() (n int)

func (*Empty) String

func (m *Empty) String() string

func (*Empty) Unmarshal

func (m *Empty) Unmarshal(dAtA []byte) error

func (*Empty) Validate

func (this *Empty) Validate() error

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_MessageName

func (*Empty) XXX_MessageName() string

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

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 (*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) Descriptor() ([]byte, []int)

func (*MomentDTO) GetCreatedAt

func (m *MomentDTO) GetCreatedAt() *types.Timestamp

func (*MomentDTO) GetEntityID

func (m *MomentDTO) GetEntityID() string

func (*MomentDTO) GetID

func (m *MomentDTO) GetID() string

func (*MomentDTO) GetImageURLs

func (m *MomentDTO) GetImageURLs() []string

func (*MomentDTO) GetLikedEntities

func (m *MomentDTO) GetLikedEntities() []string

func (*MomentDTO) GetMessage

func (m *MomentDTO) GetMessage() string

func (*MomentDTO) GetReplies

func (m *MomentDTO) GetReplies() []*ReplyDTO

func (*MomentDTO) GetTitle

func (m *MomentDTO) GetTitle() string

func (*MomentDTO) GetVideoURLs

func (m *MomentDTO) GetVideoURLs() []string

func (*MomentDTO) Marshal

func (m *MomentDTO) Marshal() (dAtA []byte, err error)

func (*MomentDTO) MarshalTo

func (m *MomentDTO) MarshalTo(dAtA []byte) (int, error)

func (*MomentDTO) MarshalToSizedBuffer

func (m *MomentDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MomentDTO) ProtoMessage

func (*MomentDTO) ProtoMessage()

func (*MomentDTO) Reset

func (m *MomentDTO) Reset()

func (*MomentDTO) Size

func (m *MomentDTO) Size() (n int)

func (*MomentDTO) String

func (m *MomentDTO) String() string

func (*MomentDTO) Unmarshal

func (m *MomentDTO) Unmarshal(dAtA []byte) error

func (*MomentDTO) Validate

func (this *MomentDTO) Validate() error

func (*MomentDTO) XXX_DiscardUnknown

func (m *MomentDTO) XXX_DiscardUnknown()

func (*MomentDTO) XXX_Marshal

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

func (*MomentDTO) XXX_Merge

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

func (*MomentDTO) XXX_MessageName

func (*MomentDTO) XXX_MessageName() string

func (*MomentDTO) XXX_Size

func (m *MomentDTO) XXX_Size() int

func (*MomentDTO) XXX_Unmarshal

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

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

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) MarshalTo

func (m *RepeatedReplyDTO) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*ReplyDTO) GetCreatedAt

func (m *ReplyDTO) GetCreatedAt() *types.Timestamp

func (*ReplyDTO) GetEntityID

func (m *ReplyDTO) GetEntityID() string

func (*ReplyDTO) GetID

func (m *ReplyDTO) GetID() string

func (*ReplyDTO) GetImageURLs

func (m *ReplyDTO) GetImageURLs() []string

func (*ReplyDTO) GetMessage

func (m *ReplyDTO) GetMessage() string

func (*ReplyDTO) GetVideoURLs

func (m *ReplyDTO) GetVideoURLs() []string

func (*ReplyDTO) Marshal

func (m *ReplyDTO) Marshal() (dAtA []byte, err error)

func (*ReplyDTO) MarshalTo

func (m *ReplyDTO) MarshalTo(dAtA []byte) (int, error)

func (*ReplyDTO) MarshalToSizedBuffer

func (m *ReplyDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReplyDTO) ProtoMessage

func (*ReplyDTO) ProtoMessage()

func (*ReplyDTO) Reset

func (m *ReplyDTO) Reset()

func (*ReplyDTO) Size

func (m *ReplyDTO) Size() (n int)

func (*ReplyDTO) String

func (m *ReplyDTO) String() string

func (*ReplyDTO) Unmarshal

func (m *ReplyDTO) Unmarshal(dAtA []byte) error

func (*ReplyDTO) Validate

func (this *ReplyDTO) Validate() error

func (*ReplyDTO) XXX_DiscardUnknown

func (m *ReplyDTO) XXX_DiscardUnknown()

func (*ReplyDTO) XXX_Marshal

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

func (*ReplyDTO) XXX_Merge

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

func (*ReplyDTO) XXX_MessageName

func (*ReplyDTO) XXX_MessageName() string

func (*ReplyDTO) XXX_Size

func (m *ReplyDTO) XXX_Size() int

func (*ReplyDTO) XXX_Unmarshal

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

type UnimplementedMomentServiceServer

type UnimplementedMomentServiceServer struct {
}

UnimplementedMomentServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMomentServiceServer) CreateMoment

func (*UnimplementedMomentServiceServer) CreateReply

func (*UnimplementedMomentServiceServer) DeleteMomentByID

func (*UnimplementedMomentServiceServer) DeleteReplyByID

func (*UnimplementedMomentServiceServer) GetAllMomentsByEntityID

func (*UnimplementedMomentServiceServer) GetMomentByID

func (*UnimplementedMomentServiceServer) GetReplyByID

Jump to

Keyboard shortcuts

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