pb

package
v0.0.0-...-40fc3ee Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func (*Comment) GetId

func (m *Comment) GetId() string

func (*Comment) GetText

func (m *Comment) GetText() string

func (*Comment) GetUserID

func (m *Comment) GetUserID() string

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) Reset

func (m *Comment) Reset()

func (*Comment) String

func (m *Comment) String() string

func (*Comment) XXX_DiscardUnknown

func (m *Comment) XXX_DiscardUnknown()

func (*Comment) XXX_Marshal

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

func (*Comment) XXX_Merge

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

func (*Comment) XXX_Size

func (m *Comment) XXX_Size() int

func (*Comment) XXX_Unmarshal

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

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

func (*File) GetHeight

func (m *File) GetHeight() int32

func (*File) GetId

func (m *File) GetId() string

func (*File) GetName

func (m *File) GetName() string

func (*File) GetSize

func (m *File) GetSize() int64

func (*File) GetType

func (m *File) GetType() string

func (*File) GetWidth

func (m *File) GetWidth() int32

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) Reset

func (m *File) Reset()

func (*File) String

func (m *File) String() string

func (*File) XXX_DiscardUnknown

func (m *File) XXX_DiscardUnknown()

func (*File) XXX_Marshal

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

func (*File) XXX_Merge

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

func (*File) XXX_Size

func (m *File) XXX_Size() int

func (*File) XXX_Unmarshal

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

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

func (*Image) GetHeight

func (m *Image) GetHeight() int32

func (*Image) GetId

func (m *Image) GetId() string

func (*Image) GetName

func (m *Image) GetName() string

func (*Image) GetSize

func (m *Image) GetSize() int64

func (*Image) GetType

func (m *Image) GetType() string

func (*Image) GetWidth

func (m *Image) GetWidth() int32

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) Reset

func (m *Image) Reset()

func (*Image) String

func (m *Image) String() string

func (*Image) XXX_DiscardUnknown

func (m *Image) XXX_DiscardUnknown()

func (*Image) XXX_Marshal

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

func (*Image) XXX_Merge

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

func (*Image) XXX_Size

func (m *Image) XXX_Size() int

func (*Image) XXX_Unmarshal

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

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"`
	Share                []string             `protobuf:"bytes,17,rep,name=share,proto3" json:"share,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Post) Descriptor

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

func (*Post) GetAgreements

func (m *Post) GetAgreements() []string

func (*Post) GetAnonymous

func (m *Post) GetAnonymous() bool

func (*Post) GetAuthor

func (m *Post) GetAuthor() string

func (*Post) GetCategory

func (m *Post) GetCategory() string

func (*Post) GetComments

func (m *Post) GetComments() []string

func (*Post) GetContentFile

func (m *Post) GetContentFile() *File

func (*Post) GetContentPhoto

func (m *Post) GetContentPhoto() *Image

func (*Post) GetContentText

func (m *Post) GetContentText() string

func (*Post) GetFollowers

func (m *Post) GetFollowers() []string

func (*Post) GetId

func (m *Post) GetId() string

func (*Post) GetLatitude

func (m *Post) GetLatitude() float64

func (*Post) GetLikes

func (m *Post) GetLikes() []string

func (*Post) GetLongitude

func (m *Post) GetLongitude() float64

func (*Post) GetShare

func (m *Post) GetShare() []string

func (*Post) GetTime

func (m *Post) GetTime() *timestamp.Timestamp

func (*Post) GetTopic

func (m *Post) GetTopic() string

func (*Post) GetType

func (m *Post) GetType() string

func (*Post) ProtoMessage

func (*Post) ProtoMessage()

func (*Post) Reset

func (m *Post) Reset()

func (*Post) String

func (m *Post) String() string

func (*Post) XXX_DiscardUnknown

func (m *Post) XXX_DiscardUnknown()

func (*Post) XXX_Marshal

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

func (*Post) XXX_Merge

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

func (*Post) XXX_Size

func (m *Post) XXX_Size() int

func (*Post) XXX_Unmarshal

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

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

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 {
	Party                string   `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Share) Descriptor

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

func (*Share) GetParty

func (m *Share) GetParty() string

func (*Share) ProtoMessage

func (*Share) ProtoMessage()

func (*Share) Reset

func (m *Share) Reset()

func (*Share) String

func (m *Share) String() string

func (*Share) XXX_DiscardUnknown

func (m *Share) XXX_DiscardUnknown()

func (*Share) XXX_Marshal

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

func (*Share) XXX_Merge

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

func (*Share) XXX_Size

func (m *Share) XXX_Size() int

func (*Share) XXX_Unmarshal

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

type UnimplementedPostServiceServer

type UnimplementedPostServiceServer struct {
}

UnimplementedPostServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPostServiceServer) DeletePost

func (*UnimplementedPostServiceServer) GetMultiplePosts

func (*UnimplementedPostServiceServer) GetPost

func (*UnimplementedPostServiceServer) PostPost

func (*UnimplementedPostServiceServer) PutPost

Jump to

Keyboard shortcuts

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