Documentation ¶
Index ¶
- func RegisterPostServiceServer(s *grpc.Server, srv PostServiceServer)
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)
- func (m *Comment) GetId() string
- func (m *Comment) GetText() string
- func (m *Comment) GetUserID() string
- func (*Comment) ProtoMessage()
- func (m *Comment) Reset()
- func (m *Comment) String() string
- func (m *Comment) XXX_DiscardUnknown()
- func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Comment) XXX_Merge(src proto.Message)
- func (m *Comment) XXX_Size() int
- func (m *Comment) XXX_Unmarshal(b []byte) error
- type DeletePostRequest
- func (*DeletePostRequest) Descriptor() ([]byte, []int)
- func (m *DeletePostRequest) GetId() string
- func (*DeletePostRequest) ProtoMessage()
- func (m *DeletePostRequest) Reset()
- func (m *DeletePostRequest) String() string
- func (m *DeletePostRequest) XXX_DiscardUnknown()
- func (m *DeletePostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeletePostRequest) XXX_Merge(src proto.Message)
- func (m *DeletePostRequest) XXX_Size() int
- func (m *DeletePostRequest) XXX_Unmarshal(b []byte) error
- type DeletePostResponse
- func (*DeletePostResponse) Descriptor() ([]byte, []int)
- func (m *DeletePostResponse) GetId() string
- func (*DeletePostResponse) ProtoMessage()
- func (m *DeletePostResponse) Reset()
- func (m *DeletePostResponse) String() string
- func (m *DeletePostResponse) XXX_DiscardUnknown()
- func (m *DeletePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeletePostResponse) XXX_Merge(src proto.Message)
- func (m *DeletePostResponse) XXX_Size() int
- func (m *DeletePostResponse) XXX_Unmarshal(b []byte) error
- type File
- func (*File) Descriptor() ([]byte, []int)
- func (m *File) GetHeight() int32
- func (m *File) GetId() string
- func (m *File) GetName() string
- func (m *File) GetSize() int64
- func (m *File) GetType() string
- func (m *File) GetWidth() int32
- func (*File) ProtoMessage()
- func (m *File) Reset()
- func (m *File) String() string
- func (m *File) XXX_DiscardUnknown()
- func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *File) XXX_Merge(src proto.Message)
- func (m *File) XXX_Size() int
- func (m *File) XXX_Unmarshal(b []byte) error
- type GetMultiplePostsRequest
- func (*GetMultiplePostsRequest) Descriptor() ([]byte, []int)
- func (m *GetMultiplePostsRequest) GetSkip() uint64
- func (m *GetMultiplePostsRequest) GetTake() uint64
- func (*GetMultiplePostsRequest) ProtoMessage()
- func (m *GetMultiplePostsRequest) Reset()
- func (m *GetMultiplePostsRequest) String() string
- func (m *GetMultiplePostsRequest) XXX_DiscardUnknown()
- func (m *GetMultiplePostsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetMultiplePostsRequest) XXX_Merge(src proto.Message)
- func (m *GetMultiplePostsRequest) XXX_Size() int
- func (m *GetMultiplePostsRequest) XXX_Unmarshal(b []byte) error
- type GetMultiplePostsResponse
- func (*GetMultiplePostsResponse) Descriptor() ([]byte, []int)
- func (m *GetMultiplePostsResponse) GetPosts() []*Post
- func (*GetMultiplePostsResponse) ProtoMessage()
- func (m *GetMultiplePostsResponse) Reset()
- func (m *GetMultiplePostsResponse) String() string
- func (m *GetMultiplePostsResponse) XXX_DiscardUnknown()
- func (m *GetMultiplePostsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetMultiplePostsResponse) XXX_Merge(src proto.Message)
- func (m *GetMultiplePostsResponse) XXX_Size() int
- func (m *GetMultiplePostsResponse) XXX_Unmarshal(b []byte) error
- type GetPostRequest
- func (*GetPostRequest) Descriptor() ([]byte, []int)
- func (m *GetPostRequest) GetId() string
- func (m *GetPostRequest) GetUserID() uint64
- func (*GetPostRequest) ProtoMessage()
- func (m *GetPostRequest) Reset()
- func (m *GetPostRequest) String() string
- func (m *GetPostRequest) XXX_DiscardUnknown()
- func (m *GetPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPostRequest) XXX_Merge(src proto.Message)
- func (m *GetPostRequest) XXX_Size() int
- func (m *GetPostRequest) XXX_Unmarshal(b []byte) error
- type GetPostResponse
- func (*GetPostResponse) Descriptor() ([]byte, []int)
- func (m *GetPostResponse) GetPost() *Post
- func (*GetPostResponse) ProtoMessage()
- func (m *GetPostResponse) Reset()
- func (m *GetPostResponse) String() string
- func (m *GetPostResponse) XXX_DiscardUnknown()
- func (m *GetPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPostResponse) XXX_Merge(src proto.Message)
- func (m *GetPostResponse) XXX_Size() int
- func (m *GetPostResponse) XXX_Unmarshal(b []byte) error
- type Image
- func (*Image) Descriptor() ([]byte, []int)
- func (m *Image) GetHeight() int32
- func (m *Image) GetId() string
- func (m *Image) GetName() string
- func (m *Image) GetSize() int64
- func (m *Image) GetType() string
- func (m *Image) GetWidth() int32
- func (*Image) ProtoMessage()
- func (m *Image) Reset()
- func (m *Image) String() string
- func (m *Image) XXX_DiscardUnknown()
- func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Image) XXX_Merge(src proto.Message)
- func (m *Image) XXX_Size() int
- func (m *Image) XXX_Unmarshal(b []byte) error
- type Post
- func (*Post) Descriptor() ([]byte, []int)
- func (m *Post) GetAgreements() []string
- func (m *Post) GetAnonymous() bool
- func (m *Post) GetAuthor() string
- func (m *Post) GetCategory() string
- func (m *Post) GetComments() []string
- func (m *Post) GetContentFile() *File
- func (m *Post) GetContentPhoto() *Image
- func (m *Post) GetContentText() string
- func (m *Post) GetFollowers() []string
- func (m *Post) GetId() string
- func (m *Post) GetLatitude() float64
- func (m *Post) GetLikes() []string
- func (m *Post) GetLongitude() float64
- func (m *Post) GetShare() []string
- func (m *Post) GetTime() *timestamp.Timestamp
- func (m *Post) GetTopic() string
- func (m *Post) GetType() string
- func (*Post) ProtoMessage()
- func (m *Post) Reset()
- func (m *Post) String() string
- func (m *Post) XXX_DiscardUnknown()
- func (m *Post) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Post) XXX_Merge(src proto.Message)
- func (m *Post) XXX_Size() int
- func (m *Post) XXX_Unmarshal(b []byte) error
- type PostPostRequest
- func (*PostPostRequest) Descriptor() ([]byte, []int)
- func (m *PostPostRequest) GetAnonymous() bool
- func (m *PostPostRequest) GetAuthor() string
- func (m *PostPostRequest) GetCategory() string
- func (m *PostPostRequest) GetContentFile() *File
- func (m *PostPostRequest) GetContentPhoto() *Image
- func (m *PostPostRequest) GetContentText() string
- func (m *PostPostRequest) GetLatitude() float64
- func (m *PostPostRequest) GetLongitude() float64
- func (m *PostPostRequest) GetTime() *timestamp.Timestamp
- func (m *PostPostRequest) GetTopic() string
- func (m *PostPostRequest) GetType() string
- func (*PostPostRequest) ProtoMessage()
- func (m *PostPostRequest) Reset()
- func (m *PostPostRequest) String() string
- func (m *PostPostRequest) XXX_DiscardUnknown()
- func (m *PostPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PostPostRequest) XXX_Merge(src proto.Message)
- func (m *PostPostRequest) XXX_Size() int
- func (m *PostPostRequest) XXX_Unmarshal(b []byte) error
- type PostPostResponse
- func (*PostPostResponse) Descriptor() ([]byte, []int)
- func (m *PostPostResponse) GetPost() string
- func (*PostPostResponse) ProtoMessage()
- func (m *PostPostResponse) Reset()
- func (m *PostPostResponse) String() string
- func (m *PostPostResponse) XXX_DiscardUnknown()
- func (m *PostPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PostPostResponse) XXX_Merge(src proto.Message)
- func (m *PostPostResponse) XXX_Size() int
- func (m *PostPostResponse) XXX_Unmarshal(b []byte) error
- type PostServiceClient
- type PostServiceServer
- type PutPostRequest
- func (*PutPostRequest) Descriptor() ([]byte, []int)
- func (m *PutPostRequest) GetAnonymous() bool
- func (m *PutPostRequest) GetAuthor() string
- func (m *PutPostRequest) GetCategory() string
- func (m *PutPostRequest) GetContentFile() *File
- func (m *PutPostRequest) GetContentPhoto() *Image
- func (m *PutPostRequest) GetContentText() string
- func (m *PutPostRequest) GetId() string
- func (m *PutPostRequest) GetLatitude() float64
- func (m *PutPostRequest) GetLongitude() float64
- func (m *PutPostRequest) GetTime() *timestamp.Timestamp
- func (m *PutPostRequest) GetTopic() string
- func (m *PutPostRequest) GetType() string
- func (*PutPostRequest) ProtoMessage()
- func (m *PutPostRequest) Reset()
- func (m *PutPostRequest) String() string
- func (m *PutPostRequest) XXX_DiscardUnknown()
- func (m *PutPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PutPostRequest) XXX_Merge(src proto.Message)
- func (m *PutPostRequest) XXX_Size() int
- func (m *PutPostRequest) XXX_Unmarshal(b []byte) error
- type PutPostResponse
- func (*PutPostResponse) Descriptor() ([]byte, []int)
- func (m *PutPostResponse) GetPost() string
- func (*PutPostResponse) ProtoMessage()
- func (m *PutPostResponse) Reset()
- func (m *PutPostResponse) String() string
- func (m *PutPostResponse) XXX_DiscardUnknown()
- func (m *PutPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PutPostResponse) XXX_Merge(src proto.Message)
- func (m *PutPostResponse) XXX_Size() int
- func (m *PutPostResponse) XXX_Unmarshal(b []byte) error
- type Share
- func (*Share) Descriptor() ([]byte, []int)
- func (m *Share) GetParty() string
- func (*Share) ProtoMessage()
- func (m *Share) Reset()
- func (m *Share) String() string
- func (m *Share) XXX_DiscardUnknown()
- func (m *Share) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Share) XXX_Merge(src proto.Message)
- func (m *Share) XXX_Size() int
- func (m *Share) XXX_Unmarshal(b []byte) error
- type UnimplementedPostServiceServer
- func (*UnimplementedPostServiceServer) DeletePost(ctx context.Context, req *DeletePostRequest) (*DeletePostResponse, error)
- func (*UnimplementedPostServiceServer) GetMultiplePosts(ctx context.Context, req *GetMultiplePostsRequest) (*GetMultiplePostsResponse, error)
- func (*UnimplementedPostServiceServer) GetPost(ctx context.Context, req *GetPostRequest) (*GetPostResponse, error)
- func (*UnimplementedPostServiceServer) PostPost(ctx context.Context, req *PostPostRequest) (*PostPostResponse, error)
- func (*UnimplementedPostServiceServer) PutPost(ctx context.Context, req *PutPostRequest) (*PutPostResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPostServiceServer ¶
func RegisterPostServiceServer(s *grpc.Server, srv PostServiceServer)
Types ¶
type Comment ¶
type Comment struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Comment) Descriptor ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) XXX_DiscardUnknown ¶
func (m *Comment) XXX_DiscardUnknown()
func (*Comment) XXX_Marshal ¶
func (*Comment) XXX_Unmarshal ¶
type DeletePostRequest ¶
type DeletePostRequest 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 (*DeletePostRequest) Descriptor ¶
func (*DeletePostRequest) Descriptor() ([]byte, []int)
func (*DeletePostRequest) GetId ¶
func (m *DeletePostRequest) GetId() string
func (*DeletePostRequest) ProtoMessage ¶
func (*DeletePostRequest) ProtoMessage()
func (*DeletePostRequest) Reset ¶
func (m *DeletePostRequest) Reset()
func (*DeletePostRequest) String ¶
func (m *DeletePostRequest) String() string
func (*DeletePostRequest) XXX_DiscardUnknown ¶
func (m *DeletePostRequest) XXX_DiscardUnknown()
func (*DeletePostRequest) XXX_Marshal ¶
func (m *DeletePostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeletePostRequest) XXX_Merge ¶
func (m *DeletePostRequest) XXX_Merge(src proto.Message)
func (*DeletePostRequest) XXX_Size ¶
func (m *DeletePostRequest) XXX_Size() int
func (*DeletePostRequest) XXX_Unmarshal ¶
func (m *DeletePostRequest) XXX_Unmarshal(b []byte) error
type DeletePostResponse ¶
type DeletePostResponse 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 (*DeletePostResponse) Descriptor ¶
func (*DeletePostResponse) Descriptor() ([]byte, []int)
func (*DeletePostResponse) GetId ¶
func (m *DeletePostResponse) GetId() string
func (*DeletePostResponse) ProtoMessage ¶
func (*DeletePostResponse) ProtoMessage()
func (*DeletePostResponse) Reset ¶
func (m *DeletePostResponse) Reset()
func (*DeletePostResponse) String ¶
func (m *DeletePostResponse) String() string
func (*DeletePostResponse) XXX_DiscardUnknown ¶
func (m *DeletePostResponse) XXX_DiscardUnknown()
func (*DeletePostResponse) XXX_Marshal ¶
func (m *DeletePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeletePostResponse) XXX_Merge ¶
func (m *DeletePostResponse) XXX_Merge(src proto.Message)
func (*DeletePostResponse) XXX_Size ¶
func (m *DeletePostResponse) XXX_Size() int
func (*DeletePostResponse) XXX_Unmarshal ¶
func (m *DeletePostResponse) XXX_Unmarshal(b []byte) error
type File ¶
type File struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` Width int32 `protobuf:"varint,5,opt,name=width,proto3" json:"width,omitempty"` Height int32 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*File) Descriptor ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) XXX_DiscardUnknown ¶
func (m *File) XXX_DiscardUnknown()
func (*File) XXX_Unmarshal ¶
type GetMultiplePostsRequest ¶
type GetMultiplePostsRequest struct { Skip uint64 `protobuf:"varint,1,opt,name=skip,proto3" json:"skip,omitempty"` Take uint64 `protobuf:"varint,2,opt,name=take,proto3" json:"take,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetMultiplePostsRequest) Descriptor ¶
func (*GetMultiplePostsRequest) Descriptor() ([]byte, []int)
func (*GetMultiplePostsRequest) GetSkip ¶
func (m *GetMultiplePostsRequest) GetSkip() uint64
func (*GetMultiplePostsRequest) GetTake ¶
func (m *GetMultiplePostsRequest) GetTake() uint64
func (*GetMultiplePostsRequest) ProtoMessage ¶
func (*GetMultiplePostsRequest) ProtoMessage()
func (*GetMultiplePostsRequest) Reset ¶
func (m *GetMultiplePostsRequest) Reset()
func (*GetMultiplePostsRequest) String ¶
func (m *GetMultiplePostsRequest) String() string
func (*GetMultiplePostsRequest) XXX_DiscardUnknown ¶
func (m *GetMultiplePostsRequest) XXX_DiscardUnknown()
func (*GetMultiplePostsRequest) XXX_Marshal ¶
func (m *GetMultiplePostsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetMultiplePostsRequest) XXX_Merge ¶
func (m *GetMultiplePostsRequest) XXX_Merge(src proto.Message)
func (*GetMultiplePostsRequest) XXX_Size ¶
func (m *GetMultiplePostsRequest) XXX_Size() int
func (*GetMultiplePostsRequest) XXX_Unmarshal ¶
func (m *GetMultiplePostsRequest) XXX_Unmarshal(b []byte) error
type GetMultiplePostsResponse ¶
type GetMultiplePostsResponse struct { Posts []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetMultiplePostsResponse) Descriptor ¶
func (*GetMultiplePostsResponse) Descriptor() ([]byte, []int)
func (*GetMultiplePostsResponse) GetPosts ¶
func (m *GetMultiplePostsResponse) GetPosts() []*Post
func (*GetMultiplePostsResponse) ProtoMessage ¶
func (*GetMultiplePostsResponse) ProtoMessage()
func (*GetMultiplePostsResponse) Reset ¶
func (m *GetMultiplePostsResponse) Reset()
func (*GetMultiplePostsResponse) String ¶
func (m *GetMultiplePostsResponse) String() string
func (*GetMultiplePostsResponse) XXX_DiscardUnknown ¶
func (m *GetMultiplePostsResponse) XXX_DiscardUnknown()
func (*GetMultiplePostsResponse) XXX_Marshal ¶
func (m *GetMultiplePostsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetMultiplePostsResponse) XXX_Merge ¶
func (m *GetMultiplePostsResponse) XXX_Merge(src proto.Message)
func (*GetMultiplePostsResponse) XXX_Size ¶
func (m *GetMultiplePostsResponse) XXX_Size() int
func (*GetMultiplePostsResponse) XXX_Unmarshal ¶
func (m *GetMultiplePostsResponse) XXX_Unmarshal(b []byte) error
type GetPostRequest ¶
type GetPostRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UserID uint64 `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetPostRequest) Descriptor ¶
func (*GetPostRequest) Descriptor() ([]byte, []int)
func (*GetPostRequest) GetId ¶
func (m *GetPostRequest) GetId() string
func (*GetPostRequest) GetUserID ¶
func (m *GetPostRequest) GetUserID() uint64
func (*GetPostRequest) ProtoMessage ¶
func (*GetPostRequest) ProtoMessage()
func (*GetPostRequest) Reset ¶
func (m *GetPostRequest) Reset()
func (*GetPostRequest) String ¶
func (m *GetPostRequest) String() string
func (*GetPostRequest) XXX_DiscardUnknown ¶
func (m *GetPostRequest) XXX_DiscardUnknown()
func (*GetPostRequest) XXX_Marshal ¶
func (m *GetPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPostRequest) XXX_Merge ¶
func (m *GetPostRequest) XXX_Merge(src proto.Message)
func (*GetPostRequest) XXX_Size ¶
func (m *GetPostRequest) XXX_Size() int
func (*GetPostRequest) XXX_Unmarshal ¶
func (m *GetPostRequest) XXX_Unmarshal(b []byte) error
type GetPostResponse ¶
type GetPostResponse struct { Post *Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetPostResponse) Descriptor ¶
func (*GetPostResponse) Descriptor() ([]byte, []int)
func (*GetPostResponse) GetPost ¶
func (m *GetPostResponse) GetPost() *Post
func (*GetPostResponse) ProtoMessage ¶
func (*GetPostResponse) ProtoMessage()
func (*GetPostResponse) Reset ¶
func (m *GetPostResponse) Reset()
func (*GetPostResponse) String ¶
func (m *GetPostResponse) String() string
func (*GetPostResponse) XXX_DiscardUnknown ¶
func (m *GetPostResponse) XXX_DiscardUnknown()
func (*GetPostResponse) XXX_Marshal ¶
func (m *GetPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPostResponse) XXX_Merge ¶
func (m *GetPostResponse) XXX_Merge(src proto.Message)
func (*GetPostResponse) XXX_Size ¶
func (m *GetPostResponse) XXX_Size() int
func (*GetPostResponse) XXX_Unmarshal ¶
func (m *GetPostResponse) XXX_Unmarshal(b []byte) error
type Image ¶
type Image struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` Width int32 `protobuf:"varint,5,opt,name=width,proto3" json:"width,omitempty"` Height int32 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Image) Descriptor ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) XXX_DiscardUnknown ¶
func (m *Image) XXX_DiscardUnknown()
func (*Image) XXX_Marshal ¶
func (*Image) XXX_Unmarshal ¶
type Post ¶
type Post struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"` ContentText string `protobuf:"bytes,5,opt,name=contentText,proto3" json:"contentText,omitempty"` Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` Anonymous bool `protobuf:"varint,7,opt,name=anonymous,proto3" json:"anonymous,omitempty"` Latitude float64 `protobuf:"fixed64,8,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float64 `protobuf:"fixed64,9,opt,name=longitude,proto3" json:"longitude,omitempty"` Time *timestamp.Timestamp `protobuf:"bytes,10,opt,name=time,proto3" json:"time,omitempty"` ContentPhoto *Image `protobuf:"bytes,11,opt,name=contentPhoto,proto3" json:"contentPhoto,omitempty"` ContentFile *File `protobuf:"bytes,12,opt,name=contentFile,proto3" json:"contentFile,omitempty"` Likes []string `protobuf:"bytes,13,rep,name=likes,proto3" json:"likes,omitempty"` Agreements []string `protobuf:"bytes,14,rep,name=agreements,proto3" json:"agreements,omitempty"` Followers []string `protobuf:"bytes,15,rep,name=followers,proto3" json:"followers,omitempty"` Comments []string `protobuf:"bytes,16,rep,name=comments,proto3" json:"comments,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Post) Descriptor ¶
func (*Post) GetAgreements ¶
func (*Post) GetAnonymous ¶
func (*Post) GetCategory ¶
func (*Post) GetComments ¶
func (*Post) GetContentFile ¶
func (*Post) GetContentPhoto ¶
func (*Post) GetContentText ¶
func (*Post) GetFollowers ¶
func (*Post) GetLatitude ¶
func (*Post) GetLongitude ¶
func (*Post) ProtoMessage ¶
func (*Post) ProtoMessage()
func (*Post) XXX_DiscardUnknown ¶
func (m *Post) XXX_DiscardUnknown()
func (*Post) XXX_Unmarshal ¶
type PostPostRequest ¶
type PostPostRequest struct { Author string `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"` Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"` ContentText string `protobuf:"bytes,4,opt,name=contentText,proto3" json:"contentText,omitempty"` Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` Anonymous bool `protobuf:"varint,6,opt,name=anonymous,proto3" json:"anonymous,omitempty"` Latitude float64 `protobuf:"fixed64,7,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float64 `protobuf:"fixed64,8,opt,name=longitude,proto3" json:"longitude,omitempty"` Time *timestamp.Timestamp `protobuf:"bytes,9,opt,name=time,proto3" json:"time,omitempty"` ContentPhoto *Image `protobuf:"bytes,10,opt,name=contentPhoto,proto3" json:"contentPhoto,omitempty"` ContentFile *File `protobuf:"bytes,11,opt,name=contentFile,proto3" json:"contentFile,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PostPostRequest) Descriptor ¶
func (*PostPostRequest) Descriptor() ([]byte, []int)
func (*PostPostRequest) GetAnonymous ¶
func (m *PostPostRequest) GetAnonymous() bool
func (*PostPostRequest) GetAuthor ¶
func (m *PostPostRequest) GetAuthor() string
func (*PostPostRequest) GetCategory ¶
func (m *PostPostRequest) GetCategory() string
func (*PostPostRequest) GetContentFile ¶
func (m *PostPostRequest) GetContentFile() *File
func (*PostPostRequest) GetContentPhoto ¶
func (m *PostPostRequest) GetContentPhoto() *Image
func (*PostPostRequest) GetContentText ¶
func (m *PostPostRequest) GetContentText() string
func (*PostPostRequest) GetLatitude ¶
func (m *PostPostRequest) GetLatitude() float64
func (*PostPostRequest) GetLongitude ¶
func (m *PostPostRequest) GetLongitude() float64
func (*PostPostRequest) GetTime ¶
func (m *PostPostRequest) GetTime() *timestamp.Timestamp
func (*PostPostRequest) GetTopic ¶
func (m *PostPostRequest) GetTopic() string
func (*PostPostRequest) GetType ¶
func (m *PostPostRequest) GetType() string
func (*PostPostRequest) ProtoMessage ¶
func (*PostPostRequest) ProtoMessage()
func (*PostPostRequest) Reset ¶
func (m *PostPostRequest) Reset()
func (*PostPostRequest) String ¶
func (m *PostPostRequest) String() string
func (*PostPostRequest) XXX_DiscardUnknown ¶
func (m *PostPostRequest) XXX_DiscardUnknown()
func (*PostPostRequest) XXX_Marshal ¶
func (m *PostPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PostPostRequest) XXX_Merge ¶
func (m *PostPostRequest) XXX_Merge(src proto.Message)
func (*PostPostRequest) XXX_Size ¶
func (m *PostPostRequest) XXX_Size() int
func (*PostPostRequest) XXX_Unmarshal ¶
func (m *PostPostRequest) XXX_Unmarshal(b []byte) error
type PostPostResponse ¶
type PostPostResponse struct { Post string `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PostPostResponse) Descriptor ¶
func (*PostPostResponse) Descriptor() ([]byte, []int)
func (*PostPostResponse) GetPost ¶
func (m *PostPostResponse) GetPost() string
func (*PostPostResponse) ProtoMessage ¶
func (*PostPostResponse) ProtoMessage()
func (*PostPostResponse) Reset ¶
func (m *PostPostResponse) Reset()
func (*PostPostResponse) String ¶
func (m *PostPostResponse) String() string
func (*PostPostResponse) XXX_DiscardUnknown ¶
func (m *PostPostResponse) XXX_DiscardUnknown()
func (*PostPostResponse) XXX_Marshal ¶
func (m *PostPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PostPostResponse) XXX_Merge ¶
func (m *PostPostResponse) XXX_Merge(src proto.Message)
func (*PostPostResponse) XXX_Size ¶
func (m *PostPostResponse) XXX_Size() int
func (*PostPostResponse) XXX_Unmarshal ¶
func (m *PostPostResponse) XXX_Unmarshal(b []byte) error
type PostServiceClient ¶
type PostServiceClient interface { PostPost(ctx context.Context, in *PostPostRequest, opts ...grpc.CallOption) (*PostPostResponse, error) GetPost(ctx context.Context, in *GetPostRequest, opts ...grpc.CallOption) (*GetPostResponse, error) GetMultiplePosts(ctx context.Context, in *GetMultiplePostsRequest, opts ...grpc.CallOption) (*GetMultiplePostsResponse, error) PutPost(ctx context.Context, in *PutPostRequest, opts ...grpc.CallOption) (*PutPostResponse, error) DeletePost(ctx context.Context, in *DeletePostRequest, opts ...grpc.CallOption) (*DeletePostResponse, error) }
PostServiceClient is the client API for PostService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPostServiceClient ¶
func NewPostServiceClient(cc *grpc.ClientConn) PostServiceClient
type PostServiceServer ¶
type PostServiceServer interface { PostPost(context.Context, *PostPostRequest) (*PostPostResponse, error) GetPost(context.Context, *GetPostRequest) (*GetPostResponse, error) GetMultiplePosts(context.Context, *GetMultiplePostsRequest) (*GetMultiplePostsResponse, error) PutPost(context.Context, *PutPostRequest) (*PutPostResponse, error) DeletePost(context.Context, *DeletePostRequest) (*DeletePostResponse, error) }
PostServiceServer is the server API for PostService service.
type PutPostRequest ¶
type PutPostRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"` ContentText string `protobuf:"bytes,5,opt,name=contentText,proto3" json:"contentText,omitempty"` Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` Anonymous bool `protobuf:"varint,7,opt,name=anonymous,proto3" json:"anonymous,omitempty"` Latitude float64 `protobuf:"fixed64,8,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float64 `protobuf:"fixed64,9,opt,name=longitude,proto3" json:"longitude,omitempty"` Time *timestamp.Timestamp `protobuf:"bytes,10,opt,name=time,proto3" json:"time,omitempty"` ContentPhoto *Image `protobuf:"bytes,11,opt,name=contentPhoto,proto3" json:"contentPhoto,omitempty"` ContentFile *File `protobuf:"bytes,12,opt,name=contentFile,proto3" json:"contentFile,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PutPostRequest) Descriptor ¶
func (*PutPostRequest) Descriptor() ([]byte, []int)
func (*PutPostRequest) GetAnonymous ¶
func (m *PutPostRequest) GetAnonymous() bool
func (*PutPostRequest) GetAuthor ¶
func (m *PutPostRequest) GetAuthor() string
func (*PutPostRequest) GetCategory ¶
func (m *PutPostRequest) GetCategory() string
func (*PutPostRequest) GetContentFile ¶
func (m *PutPostRequest) GetContentFile() *File
func (*PutPostRequest) GetContentPhoto ¶
func (m *PutPostRequest) GetContentPhoto() *Image
func (*PutPostRequest) GetContentText ¶
func (m *PutPostRequest) GetContentText() string
func (*PutPostRequest) GetId ¶
func (m *PutPostRequest) GetId() string
func (*PutPostRequest) GetLatitude ¶
func (m *PutPostRequest) GetLatitude() float64
func (*PutPostRequest) GetLongitude ¶
func (m *PutPostRequest) GetLongitude() float64
func (*PutPostRequest) GetTime ¶
func (m *PutPostRequest) GetTime() *timestamp.Timestamp
func (*PutPostRequest) GetTopic ¶
func (m *PutPostRequest) GetTopic() string
func (*PutPostRequest) GetType ¶
func (m *PutPostRequest) GetType() string
func (*PutPostRequest) ProtoMessage ¶
func (*PutPostRequest) ProtoMessage()
func (*PutPostRequest) Reset ¶
func (m *PutPostRequest) Reset()
func (*PutPostRequest) String ¶
func (m *PutPostRequest) String() string
func (*PutPostRequest) XXX_DiscardUnknown ¶
func (m *PutPostRequest) XXX_DiscardUnknown()
func (*PutPostRequest) XXX_Marshal ¶
func (m *PutPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PutPostRequest) XXX_Merge ¶
func (m *PutPostRequest) XXX_Merge(src proto.Message)
func (*PutPostRequest) XXX_Size ¶
func (m *PutPostRequest) XXX_Size() int
func (*PutPostRequest) XXX_Unmarshal ¶
func (m *PutPostRequest) XXX_Unmarshal(b []byte) error
type PutPostResponse ¶
type PutPostResponse struct { Post string `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PutPostResponse) Descriptor ¶
func (*PutPostResponse) Descriptor() ([]byte, []int)
func (*PutPostResponse) GetPost ¶
func (m *PutPostResponse) GetPost() string
func (*PutPostResponse) ProtoMessage ¶
func (*PutPostResponse) ProtoMessage()
func (*PutPostResponse) Reset ¶
func (m *PutPostResponse) Reset()
func (*PutPostResponse) String ¶
func (m *PutPostResponse) String() string
func (*PutPostResponse) XXX_DiscardUnknown ¶
func (m *PutPostResponse) XXX_DiscardUnknown()
func (*PutPostResponse) XXX_Marshal ¶
func (m *PutPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PutPostResponse) XXX_Merge ¶
func (m *PutPostResponse) XXX_Merge(src proto.Message)
func (*PutPostResponse) XXX_Size ¶
func (m *PutPostResponse) XXX_Size() int
func (*PutPostResponse) XXX_Unmarshal ¶
func (m *PutPostResponse) XXX_Unmarshal(b []byte) error
type Share ¶
type Share struct {}
func (*Share) Descriptor ¶
func (*Share) ProtoMessage ¶
func (*Share) ProtoMessage()
func (*Share) XXX_DiscardUnknown ¶
func (m *Share) XXX_DiscardUnknown()
func (*Share) XXX_Marshal ¶
func (*Share) XXX_Unmarshal ¶
type UnimplementedPostServiceServer ¶
type UnimplementedPostServiceServer struct { }
UnimplementedPostServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedPostServiceServer) DeletePost ¶
func (*UnimplementedPostServiceServer) DeletePost(ctx context.Context, req *DeletePostRequest) (*DeletePostResponse, error)
func (*UnimplementedPostServiceServer) GetMultiplePosts ¶
func (*UnimplementedPostServiceServer) GetMultiplePosts(ctx context.Context, req *GetMultiplePostsRequest) (*GetMultiplePostsResponse, error)
func (*UnimplementedPostServiceServer) GetPost ¶
func (*UnimplementedPostServiceServer) GetPost(ctx context.Context, req *GetPostRequest) (*GetPostResponse, error)
func (*UnimplementedPostServiceServer) PostPost ¶
func (*UnimplementedPostServiceServer) PostPost(ctx context.Context, req *PostPostRequest) (*PostPostResponse, error)
func (*UnimplementedPostServiceServer) PutPost ¶
func (*UnimplementedPostServiceServer) PutPost(ctx context.Context, req *PutPostRequest) (*PutPostResponse, error)
Click to show internal directories.
Click to hide internal directories.