Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterIpPostsAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterIpPostsAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IpPostsAPIClient) error
- func RegisterIpPostsAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterIpPostsAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IpPostsAPIServer) error
- func RegisterIpPostsAPIServer(s grpc.ServiceRegistrar, srv IpPostsAPIServer)
- func RegisterIpVotesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterIpVotesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IpVotesAPIClient) error
- func RegisterIpVotesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterIpVotesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IpVotesAPIServer) error
- func RegisterIpVotesAPIServer(s grpc.ServiceRegistrar, srv IpVotesAPIServer)
- func RegisterPostVotesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPostVotesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PostVotesAPIClient) error
- func RegisterPostVotesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPostVotesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PostVotesAPIServer) error
- func RegisterPostVotesAPIServer(s grpc.ServiceRegistrar, srv PostVotesAPIServer)
- func RegisterPostsAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPostsAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PostsAPIClient) error
- func RegisterPostsAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPostsAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PostsAPIServer) error
- func RegisterPostsAPIServer(s grpc.ServiceRegistrar, srv PostsAPIServer)
- func RegisterUsersAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUsersAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UsersAPIClient) error
- func RegisterUsersAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUsersAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UsersAPIServer) error
- func RegisterUsersAPIServer(s grpc.ServiceRegistrar, srv UsersAPIServer)
- func RegisterVotesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterVotesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VotesAPIClient) error
- func RegisterVotesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterVotesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VotesAPIServer) error
- func RegisterVotesAPIServer(s grpc.ServiceRegistrar, srv VotesAPIServer)
- type CreateIpPostRequest
- func (*CreateIpPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateIpPostRequest) GetIpPost() *IpPost
- func (x *CreateIpPostRequest) GetIpPostId() int32
- func (x *CreateIpPostRequest) GetParent() string
- func (*CreateIpPostRequest) ProtoMessage()
- func (x *CreateIpPostRequest) ProtoReflect() protoreflect.Message
- func (x *CreateIpPostRequest) Reset()
- func (x *CreateIpPostRequest) String() string
- type CreateIpVoteRequest
- func (*CreateIpVoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateIpVoteRequest) GetIpVote() *IpVote
- func (x *CreateIpVoteRequest) GetIpVoteId() int32
- func (x *CreateIpVoteRequest) GetParent() string
- func (*CreateIpVoteRequest) ProtoMessage()
- func (x *CreateIpVoteRequest) ProtoReflect() protoreflect.Message
- func (x *CreateIpVoteRequest) Reset()
- func (x *CreateIpVoteRequest) String() string
- type CreatePostRequest
- func (*CreatePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePostRequest) GetParent() string
- func (x *CreatePostRequest) GetPost() *Post
- func (x *CreatePostRequest) GetPostId() int32
- func (*CreatePostRequest) ProtoMessage()
- func (x *CreatePostRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePostRequest) Reset()
- func (x *CreatePostRequest) String() string
- type CreatePostVoteRequest
- func (*CreatePostVoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePostVoteRequest) GetParent() string
- func (x *CreatePostVoteRequest) GetPostVote() *PostVote
- func (x *CreatePostVoteRequest) GetPostVoteId() int32
- func (*CreatePostVoteRequest) ProtoMessage()
- func (x *CreatePostVoteRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePostVoteRequest) Reset()
- func (x *CreatePostVoteRequest) String() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetParent() string
- func (x *CreateUserRequest) GetUser() *User
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- type CreateVoteRequest
- func (*CreateVoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVoteRequest) GetParent() string
- func (x *CreateVoteRequest) GetVote() *Vote
- func (*CreateVoteRequest) ProtoMessage()
- func (x *CreateVoteRequest) ProtoReflect() protoreflect.Message
- func (x *CreateVoteRequest) Reset()
- func (x *CreateVoteRequest) String() string
- type DeleteIpPostRequest
- func (*DeleteIpPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteIpPostRequest) GetName() string
- func (*DeleteIpPostRequest) ProtoMessage()
- func (x *DeleteIpPostRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteIpPostRequest) Reset()
- func (x *DeleteIpPostRequest) String() string
- type DeleteIpVoteRequest
- func (*DeleteIpVoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteIpVoteRequest) GetName() string
- func (*DeleteIpVoteRequest) ProtoMessage()
- func (x *DeleteIpVoteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteIpVoteRequest) Reset()
- func (x *DeleteIpVoteRequest) String() string
- type DeletePostRequest
- type DeletePostVoteRequest
- func (*DeletePostVoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePostVoteRequest) GetName() string
- func (*DeletePostVoteRequest) ProtoMessage()
- func (x *DeletePostVoteRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePostVoteRequest) Reset()
- func (x *DeletePostVoteRequest) String() string
- type DeleteUserRequest
- type DeleteVoteRequest
- type GetByPidVidRequest
- func (*GetByPidVidRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetByPidVidRequest) GetName() string
- func (*GetByPidVidRequest) ProtoMessage()
- func (x *GetByPidVidRequest) ProtoReflect() protoreflect.Message
- func (x *GetByPidVidRequest) Reset()
- func (x *GetByPidVidRequest) String() string
- type GetIpPostRequest
- type GetIpVoteRequest
- type GetPostRequest
- type GetPostVoteRequest
- func (*GetPostVoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPostVoteRequest) GetName() string
- func (*GetPostVoteRequest) ProtoMessage()
- func (x *GetPostVoteRequest) ProtoReflect() protoreflect.Message
- func (x *GetPostVoteRequest) Reset()
- func (x *GetPostVoteRequest) String() string
- type GetUserRequest
- type GetVoteRequest
- type IpPost
- func (*IpPost) Descriptor() ([]byte, []int)deprecated
- func (x *IpPost) GetIp() string
- func (x *IpPost) GetIpPostId() int32
- func (x *IpPost) GetName() string
- func (x *IpPost) GetPostId() int32
- func (*IpPost) ProtoMessage()
- func (x *IpPost) ProtoReflect() protoreflect.Message
- func (x *IpPost) Reset()
- func (x *IpPost) String() string
- type IpPosts
- type IpPostsAPIClient
- type IpPostsAPIServer
- type IpVote
- func (*IpVote) Descriptor() ([]byte, []int)deprecated
- func (x *IpVote) GetIp() string
- func (x *IpVote) GetIpVoteId() int32
- func (x *IpVote) GetName() string
- func (x *IpVote) GetOpts() string
- func (x *IpVote) GetPostId() int32
- func (x *IpVote) GetTxtField() string
- func (x *IpVote) GetVoteId() int32
- func (*IpVote) ProtoMessage()
- func (x *IpVote) ProtoReflect() protoreflect.Message
- func (x *IpVote) Reset()
- func (x *IpVote) String() string
- type IpVotes
- type IpVotesAPIClient
- type IpVotesAPIServer
- type ListIpPostsRequest
- func (*ListIpPostsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListIpPostsRequest) GetPageSize() int32
- func (x *ListIpPostsRequest) GetPageToken() string
- func (x *ListIpPostsRequest) GetParent() string
- func (*ListIpPostsRequest) ProtoMessage()
- func (x *ListIpPostsRequest) ProtoReflect() protoreflect.Message
- func (x *ListIpPostsRequest) Reset()
- func (x *ListIpPostsRequest) String() string
- type ListIpPostsResponse
- func (*ListIpPostsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListIpPostsResponse) GetIpPosts() []*IpPost
- func (x *ListIpPostsResponse) GetNextPageToken() string
- func (*ListIpPostsResponse) ProtoMessage()
- func (x *ListIpPostsResponse) ProtoReflect() protoreflect.Message
- func (x *ListIpPostsResponse) Reset()
- func (x *ListIpPostsResponse) String() string
- type ListIpVotesRequest
- func (*ListIpVotesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListIpVotesRequest) GetPageSize() int32
- func (x *ListIpVotesRequest) GetPageToken() string
- func (x *ListIpVotesRequest) GetParent() string
- func (*ListIpVotesRequest) ProtoMessage()
- func (x *ListIpVotesRequest) ProtoReflect() protoreflect.Message
- func (x *ListIpVotesRequest) Reset()
- func (x *ListIpVotesRequest) String() string
- type ListIpVotesResponse
- func (*ListIpVotesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListIpVotesResponse) GetIpVotes() []*IpVote
- func (x *ListIpVotesResponse) GetNextPageToken() string
- func (*ListIpVotesResponse) ProtoMessage()
- func (x *ListIpVotesResponse) ProtoReflect() protoreflect.Message
- func (x *ListIpVotesResponse) Reset()
- func (x *ListIpVotesResponse) String() string
- type ListPostVotesRequest
- func (*ListPostVotesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPostVotesRequest) GetPageSize() int32
- func (x *ListPostVotesRequest) GetPageToken() string
- func (x *ListPostVotesRequest) GetParent() string
- func (*ListPostVotesRequest) ProtoMessage()
- func (x *ListPostVotesRequest) ProtoReflect() protoreflect.Message
- func (x *ListPostVotesRequest) Reset()
- func (x *ListPostVotesRequest) String() string
- type ListPostVotesResponse
- func (*ListPostVotesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPostVotesResponse) GetNextPageToken() string
- func (x *ListPostVotesResponse) GetPostVotes() []*PostVote
- func (*ListPostVotesResponse) ProtoMessage()
- func (x *ListPostVotesResponse) ProtoReflect() protoreflect.Message
- func (x *ListPostVotesResponse) Reset()
- func (x *ListPostVotesResponse) String() string
- type ListPostsRequest
- func (*ListPostsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPostsRequest) GetPageSize() int32
- func (x *ListPostsRequest) GetPageToken() string
- func (x *ListPostsRequest) GetParent() string
- func (*ListPostsRequest) ProtoMessage()
- func (x *ListPostsRequest) ProtoReflect() protoreflect.Message
- func (x *ListPostsRequest) Reset()
- func (x *ListPostsRequest) String() string
- type ListPostsResponse
- func (*ListPostsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPostsResponse) GetNextPageToken() string
- func (x *ListPostsResponse) GetPosts() []*Post
- func (*ListPostsResponse) ProtoMessage()
- func (x *ListPostsResponse) ProtoReflect() protoreflect.Message
- func (x *ListPostsResponse) Reset()
- func (x *ListPostsResponse) String() string
- type ListUsersRequest
- func (*ListUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersRequest) GetPageSize() int32
- func (x *ListUsersRequest) GetPageToken() string
- func (x *ListUsersRequest) GetParent() string
- func (*ListUsersRequest) ProtoMessage()
- func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
- func (x *ListUsersRequest) Reset()
- func (x *ListUsersRequest) String() string
- type ListUsersResponse
- func (*ListUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersResponse) GetNextPageToken() string
- func (x *ListUsersResponse) GetUsers() []*User
- func (*ListUsersResponse) ProtoMessage()
- func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
- func (x *ListUsersResponse) Reset()
- func (x *ListUsersResponse) String() string
- type ListVidsByPidRequest
- func (*ListVidsByPidRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListVidsByPidRequest) GetName() string
- func (*ListVidsByPidRequest) ProtoMessage()
- func (x *ListVidsByPidRequest) ProtoReflect() protoreflect.Message
- func (x *ListVidsByPidRequest) Reset()
- func (x *ListVidsByPidRequest) String() string
- type ListVidsByPidResponse
- func (*ListVidsByPidResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListVidsByPidResponse) GetPid() int32
- func (x *ListVidsByPidResponse) GetVids() []int32
- func (*ListVidsByPidResponse) ProtoMessage()
- func (x *ListVidsByPidResponse) ProtoReflect() protoreflect.Message
- func (x *ListVidsByPidResponse) Reset()
- func (x *ListVidsByPidResponse) String() string
- type ListVotesRequest
- func (*ListVotesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListVotesRequest) GetPageSize() int32
- func (x *ListVotesRequest) GetPageToken() string
- func (x *ListVotesRequest) GetParent() string
- func (*ListVotesRequest) ProtoMessage()
- func (x *ListVotesRequest) ProtoReflect() protoreflect.Message
- func (x *ListVotesRequest) Reset()
- func (x *ListVotesRequest) String() string
- type ListVotesResponse
- func (*ListVotesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListVotesResponse) GetNextPageToken() string
- func (x *ListVotesResponse) GetVotes() []*Vote
- func (*ListVotesResponse) ProtoMessage()
- func (x *ListVotesResponse) ProtoReflect() protoreflect.Message
- func (x *ListVotesResponse) Reset()
- func (x *ListVotesResponse) String() string
- type PermanentlyDeleteUserRequest
- func (*PermanentlyDeleteUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PermanentlyDeleteUserRequest) GetName() string
- func (*PermanentlyDeleteUserRequest) ProtoMessage()
- func (x *PermanentlyDeleteUserRequest) ProtoReflect() protoreflect.Message
- func (x *PermanentlyDeleteUserRequest) Reset()
- func (x *PermanentlyDeleteUserRequest) String() string
- type Post
- func (*Post) Descriptor() ([]byte, []int)deprecated
- func (x *Post) GetCreateTime() *timestamp.Timestamp
- func (x *Post) GetDetail() string
- func (x *Post) GetIsClosed() int32
- func (x *Post) GetName() string
- func (x *Post) GetPostId() int32
- func (x *Post) GetTitle() string
- func (x *Post) GetUpdateTime() *timestamp.Timestamp
- func (*Post) ProtoMessage()
- func (x *Post) ProtoReflect() protoreflect.Message
- func (x *Post) Reset()
- func (x *Post) String() string
- type PostVote
- func (*PostVote) Descriptor() ([]byte, []int)deprecated
- func (x *PostVote) GetName() string
- func (x *PostVote) GetPostId() int32
- func (x *PostVote) GetPostVoteId() int32
- func (x *PostVote) GetVoteId() int32
- func (*PostVote) ProtoMessage()
- func (x *PostVote) ProtoReflect() protoreflect.Message
- func (x *PostVote) Reset()
- func (x *PostVote) String() string
- type PostVotes
- type PostVotesAPIClient
- type PostVotesAPIServer
- type PostsAPIClient
- type PostsAPIServer
- type SearchPostsRequest
- func (*SearchPostsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchPostsRequest) GetName() string
- func (*SearchPostsRequest) ProtoMessage()
- func (x *SearchPostsRequest) ProtoReflect() protoreflect.Message
- func (x *SearchPostsRequest) Reset()
- func (x *SearchPostsRequest) String() string
- type SearchPostsResponse
- func (*SearchPostsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchPostsResponse) GetNextPageToken() string
- func (x *SearchPostsResponse) GetPosts() []*Post
- func (*SearchPostsResponse) ProtoMessage()
- func (x *SearchPostsResponse) ProtoReflect() protoreflect.Message
- func (x *SearchPostsResponse) Reset()
- func (x *SearchPostsResponse) String() string
- type SearchUsersRequest
- func (*SearchUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchUsersRequest) GetName() string
- func (x *SearchUsersRequest) GetPageSize() int32
- func (x *SearchUsersRequest) GetPageToken() string
- func (*SearchUsersRequest) ProtoMessage()
- func (x *SearchUsersRequest) ProtoReflect() protoreflect.Message
- func (x *SearchUsersRequest) Reset()
- func (x *SearchUsersRequest) String() string
- type SearchUsersResponse
- func (*SearchUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchUsersResponse) GetNextPageToken() string
- func (x *SearchUsersResponse) GetUsers() []*User
- func (*SearchUsersResponse) ProtoMessage()
- func (x *SearchUsersResponse) ProtoReflect() protoreflect.Message
- func (x *SearchUsersResponse) Reset()
- func (x *SearchUsersResponse) String() string
- type SearchVotesRequest
- func (*SearchVotesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchVotesRequest) GetName() string
- func (x *SearchVotesRequest) GetPageSize() int32
- func (x *SearchVotesRequest) GetPageToken() string
- func (*SearchVotesRequest) ProtoMessage()
- func (x *SearchVotesRequest) ProtoReflect() protoreflect.Message
- func (x *SearchVotesRequest) Reset()
- func (x *SearchVotesRequest) String() string
- type SearchVotesResponse
- func (*SearchVotesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchVotesResponse) GetNextPageToken() string
- func (x *SearchVotesResponse) GetVotes() []*Vote
- func (*SearchVotesResponse) ProtoMessage()
- func (x *SearchVotesResponse) ProtoReflect() protoreflect.Message
- func (x *SearchVotesResponse) Reset()
- func (x *SearchVotesResponse) String() string
- type UndeleteUserRequest
- func (*UndeleteUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UndeleteUserRequest) GetName() string
- func (*UndeleteUserRequest) ProtoMessage()
- func (x *UndeleteUserRequest) ProtoReflect() protoreflect.Message
- func (x *UndeleteUserRequest) Reset()
- func (x *UndeleteUserRequest) String() string
- type UnimplementedIpPostsAPIServer
- func (UnimplementedIpPostsAPIServer) CreateIpPost(context.Context, *CreateIpPostRequest) (*IpPost, error)
- func (UnimplementedIpPostsAPIServer) DeleteIpPost(context.Context, *DeleteIpPostRequest) (*empty.Empty, error)
- func (UnimplementedIpPostsAPIServer) GetIpPost(context.Context, *GetIpPostRequest) (*IpPost, error)
- func (UnimplementedIpPostsAPIServer) ListIpPosts(context.Context, *ListIpPostsRequest) (*ListIpPostsResponse, error)
- func (UnimplementedIpPostsAPIServer) UpdateIpPost(context.Context, *UpdateIpPostRequest) (*IpPost, error)
- type UnimplementedIpVotesAPIServer
- func (UnimplementedIpVotesAPIServer) CreateIpVote(context.Context, *CreateIpVoteRequest) (*IpVote, error)
- func (UnimplementedIpVotesAPIServer) DeleteIpVote(context.Context, *DeleteIpVoteRequest) (*empty.Empty, error)
- func (UnimplementedIpVotesAPIServer) GetIpVote(context.Context, *GetIpVoteRequest) (*IpVote, error)
- func (UnimplementedIpVotesAPIServer) ListIpVotes(context.Context, *ListIpVotesRequest) (*ListIpVotesResponse, error)
- func (UnimplementedIpVotesAPIServer) UpdateIpVote(context.Context, *UpdateIpVoteRequest) (*IpVote, error)
- type UnimplementedPostVotesAPIServer
- func (UnimplementedPostVotesAPIServer) CreatePostVote(context.Context, *CreatePostVoteRequest) (*PostVote, error)
- func (UnimplementedPostVotesAPIServer) DeletePostVote(context.Context, *DeletePostVoteRequest) (*empty.Empty, error)
- func (UnimplementedPostVotesAPIServer) GetByPidVid(context.Context, *GetByPidVidRequest) (*PostVote, error)
- func (UnimplementedPostVotesAPIServer) GetPostVote(context.Context, *GetPostVoteRequest) (*PostVote, error)
- func (UnimplementedPostVotesAPIServer) ListPostVotes(context.Context, *ListPostVotesRequest) (*ListPostVotesResponse, error)
- func (UnimplementedPostVotesAPIServer) ListVidsByPid(context.Context, *ListVidsByPidRequest) (*ListVidsByPidResponse, error)
- func (UnimplementedPostVotesAPIServer) UpdatePostVote(context.Context, *UpdatePostVoteRequest) (*PostVote, error)
- type UnimplementedPostsAPIServer
- func (UnimplementedPostsAPIServer) CreatePost(context.Context, *CreatePostRequest) (*Post, error)
- func (UnimplementedPostsAPIServer) DeletePost(context.Context, *DeletePostRequest) (*empty.Empty, error)
- func (UnimplementedPostsAPIServer) GetPost(context.Context, *GetPostRequest) (*Post, error)
- func (UnimplementedPostsAPIServer) ListPosts(context.Context, *ListPostsRequest) (*ListPostsResponse, error)
- func (UnimplementedPostsAPIServer) SearchPosts(context.Context, *SearchPostsRequest) (*SearchPostsResponse, error)
- func (UnimplementedPostsAPIServer) UpdatePost(context.Context, *UpdatePostRequest) (*Post, error)
- type UnimplementedUsersAPIServer
- func (UnimplementedUsersAPIServer) CreateUser(context.Context, *CreateUserRequest) (*User, error)
- func (UnimplementedUsersAPIServer) DeleteUser(context.Context, *DeleteUserRequest) (*empty.Empty, error)
- func (UnimplementedUsersAPIServer) GetUser(context.Context, *GetUserRequest) (*User, error)
- func (UnimplementedUsersAPIServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
- func (UnimplementedUsersAPIServer) PermanentlyDeleteUser(context.Context, *PermanentlyDeleteUserRequest) (*empty.Empty, error)
- func (UnimplementedUsersAPIServer) SearchUsers(context.Context, *SearchUsersRequest) (*SearchUsersResponse, error)
- func (UnimplementedUsersAPIServer) UndeleteUser(context.Context, *UndeleteUserRequest) (*empty.Empty, error)
- func (UnimplementedUsersAPIServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
- type UnimplementedVotesAPIServer
- func (UnimplementedVotesAPIServer) CreateVote(context.Context, *CreateVoteRequest) (*Vote, error)
- func (UnimplementedVotesAPIServer) DeleteVote(context.Context, *DeleteVoteRequest) (*empty.Empty, error)
- func (UnimplementedVotesAPIServer) GetVote(context.Context, *GetVoteRequest) (*Vote, error)
- func (UnimplementedVotesAPIServer) ListVotes(context.Context, *ListVotesRequest) (*ListVotesResponse, error)
- func (UnimplementedVotesAPIServer) SearchVotes(context.Context, *SearchVotesRequest) (*SearchVotesResponse, error)
- func (UnimplementedVotesAPIServer) UpdateVote(context.Context, *UpdateVoteRequest) (*Vote, error)
- type UnsafeIpPostsAPIServer
- type UnsafeIpVotesAPIServer
- type UnsafePostVotesAPIServer
- type UnsafePostsAPIServer
- type UnsafeUsersAPIServer
- type UnsafeVotesAPIServer
- type UpdateIpPostRequest
- func (*UpdateIpPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateIpPostRequest) GetIpPost() *IpPost
- func (x *UpdateIpPostRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateIpPostRequest) ProtoMessage()
- func (x *UpdateIpPostRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateIpPostRequest) Reset()
- func (x *UpdateIpPostRequest) String() string
- type UpdateIpVoteRequest
- func (*UpdateIpVoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateIpVoteRequest) GetIpVote() *IpVote
- func (x *UpdateIpVoteRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateIpVoteRequest) ProtoMessage()
- func (x *UpdateIpVoteRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateIpVoteRequest) Reset()
- func (x *UpdateIpVoteRequest) String() string
- type UpdatePostRequest
- func (*UpdatePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePostRequest) GetPost() *Post
- func (x *UpdatePostRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdatePostRequest) ProtoMessage()
- func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePostRequest) Reset()
- func (x *UpdatePostRequest) String() string
- type UpdatePostVoteRequest
- func (*UpdatePostVoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePostVoteRequest) GetPostVote() *PostVote
- func (x *UpdatePostVoteRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdatePostVoteRequest) ProtoMessage()
- func (x *UpdatePostVoteRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePostVoteRequest) Reset()
- func (x *UpdatePostVoteRequest) String() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetUpdateMask() *field_mask.FieldMask
- func (x *UpdateUserRequest) GetUser() *User
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type UpdateVoteRequest
- func (*UpdateVoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateVoteRequest) GetUpdateMask() *field_mask.FieldMask
- func (x *UpdateVoteRequest) GetVote() *Vote
- func (*UpdateVoteRequest) ProtoMessage()
- func (x *UpdateVoteRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateVoteRequest) Reset()
- func (x *UpdateVoteRequest) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatarUrl() string
- func (x *User) GetCreateTime() *timestamp.Timestamp
- func (x *User) GetDeleted() int32
- func (x *User) GetName() string
- func (x *User) GetNickname() string
- func (x *User) GetPassword() string
- func (x *User) GetPhone() string
- func (x *User) GetRealname() string
- func (x *User) GetState() int32
- func (x *User) GetUpdateTime() *timestamp.Timestamp
- func (x *User) GetUserId() int32
- func (x *User) GetUserIp() string
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UsersAPIClient
- type UsersAPIServer
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)deprecated
- func (x *Vote) GetA() string
- func (x *Vote) GetB() string
- func (x *Vote) GetC() string
- func (x *Vote) GetCreateTime() *timestamp.Timestamp
- func (x *Vote) GetD() string
- func (x *Vote) GetE() string
- func (x *Vote) GetF() string
- func (x *Vote) GetG() string
- func (x *Vote) GetH() string
- func (x *Vote) GetHasTxtField() int32
- func (x *Vote) GetIsRadio() int32
- func (x *Vote) GetName() string
- func (x *Vote) GetTitle() string
- func (x *Vote) GetUpdateTime() *timestamp.Timestamp
- func (x *Vote) GetVoteId() int32
- func (*Vote) ProtoMessage()
- func (x *Vote) ProtoReflect() protoreflect.Message
- func (x *Vote) Reset()
- func (x *Vote) String() string
- type VotesAPIClient
- type VotesAPIServer
Constants ¶
This section is empty.
Variables ¶
var File_api_voter_v1_voter_ip_posts_proto protoreflect.FileDescriptor
var File_api_voter_v1_voter_ip_votes_proto protoreflect.FileDescriptor
var File_api_voter_v1_voter_post_votes_proto protoreflect.FileDescriptor
var File_api_voter_v1_voter_posts_proto protoreflect.FileDescriptor
var File_api_voter_v1_voter_users_proto protoreflect.FileDescriptor
var File_api_voter_v1_voter_votes_proto protoreflect.FileDescriptor
var IpPostsAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "postr.ip_posts.v1.IpPostsAPI", HandlerType: (*IpPostsAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListIpPosts", Handler: _IpPostsAPI_ListIpPosts_Handler, }, { MethodName: "GetIpPost", Handler: _IpPostsAPI_GetIpPost_Handler, }, { MethodName: "CreateIpPost", Handler: _IpPostsAPI_CreateIpPost_Handler, }, { MethodName: "UpdateIpPost", Handler: _IpPostsAPI_UpdateIpPost_Handler, }, { MethodName: "DeleteIpPost", Handler: _IpPostsAPI_DeleteIpPost_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/voter/v1/voter-ip_posts.proto", }
IpPostsAPI_ServiceDesc is the grpc.ServiceDesc for IpPostsAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var IpVotesAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "voter.ip_votes.v1.IpVotesAPI", HandlerType: (*IpVotesAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListIpVotes", Handler: _IpVotesAPI_ListIpVotes_Handler, }, { MethodName: "GetIpVote", Handler: _IpVotesAPI_GetIpVote_Handler, }, { MethodName: "CreateIpVote", Handler: _IpVotesAPI_CreateIpVote_Handler, }, { MethodName: "UpdateIpVote", Handler: _IpVotesAPI_UpdateIpVote_Handler, }, { MethodName: "DeleteIpVote", Handler: _IpVotesAPI_DeleteIpVote_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/voter/v1/voter-ip_votes.proto", }
IpVotesAPI_ServiceDesc is the grpc.ServiceDesc for IpVotesAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PostVotesAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "voter.post_votes.v1.PostVotesAPI", HandlerType: (*PostVotesAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListPostVotes", Handler: _PostVotesAPI_ListPostVotes_Handler, }, { MethodName: "GetByPidVid", Handler: _PostVotesAPI_GetByPidVid_Handler, }, { MethodName: "GetPostVote", Handler: _PostVotesAPI_GetPostVote_Handler, }, { MethodName: "ListVidsByPid", Handler: _PostVotesAPI_ListVidsByPid_Handler, }, { MethodName: "CreatePostVote", Handler: _PostVotesAPI_CreatePostVote_Handler, }, { MethodName: "UpdatePostVote", Handler: _PostVotesAPI_UpdatePostVote_Handler, }, { MethodName: "DeletePostVote", Handler: _PostVotesAPI_DeletePostVote_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/voter/v1/voter-post_votes.proto", }
PostVotesAPI_ServiceDesc is the grpc.ServiceDesc for PostVotesAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PostsAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "voter.posts.v1.PostsAPI", HandlerType: (*PostsAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListPosts", Handler: _PostsAPI_ListPosts_Handler, }, { MethodName: "GetPost", Handler: _PostsAPI_GetPost_Handler, }, { MethodName: "SearchPosts", Handler: _PostsAPI_SearchPosts_Handler, }, { MethodName: "CreatePost", Handler: _PostsAPI_CreatePost_Handler, }, { MethodName: "UpdatePost", Handler: _PostsAPI_UpdatePost_Handler, }, { MethodName: "DeletePost", Handler: _PostsAPI_DeletePost_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/voter/v1/voter-posts.proto", }
PostsAPI_ServiceDesc is the grpc.ServiceDesc for PostsAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UsersAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "voter.users.v1.UsersAPI", HandlerType: (*UsersAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListUsers", Handler: _UsersAPI_ListUsers_Handler, }, { MethodName: "GetUser", Handler: _UsersAPI_GetUser_Handler, }, { MethodName: "SearchUsers", Handler: _UsersAPI_SearchUsers_Handler, }, { MethodName: "CreateUser", Handler: _UsersAPI_CreateUser_Handler, }, { MethodName: "UpdateUser", Handler: _UsersAPI_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _UsersAPI_DeleteUser_Handler, }, { MethodName: "UndeleteUser", Handler: _UsersAPI_UndeleteUser_Handler, }, { MethodName: "PermanentlyDeleteUser", Handler: _UsersAPI_PermanentlyDeleteUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/voter/v1/voter-users.proto", }
UsersAPI_ServiceDesc is the grpc.ServiceDesc for UsersAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var VotesAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "voter.votes.v1.VotesAPI", HandlerType: (*VotesAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListVotes", Handler: _VotesAPI_ListVotes_Handler, }, { MethodName: "GetVote", Handler: _VotesAPI_GetVote_Handler, }, { MethodName: "SearchVotes", Handler: _VotesAPI_SearchVotes_Handler, }, { MethodName: "CreateVote", Handler: _VotesAPI_CreateVote_Handler, }, { MethodName: "UpdateVote", Handler: _VotesAPI_UpdateVote_Handler, }, { MethodName: "DeleteVote", Handler: _VotesAPI_DeleteVote_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/voter/v1/voter-votes.proto", }
VotesAPI_ServiceDesc is the grpc.ServiceDesc for VotesAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIpPostsAPIHandler ¶
func RegisterIpPostsAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterIpPostsAPIHandler registers the http handlers for service IpPostsAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterIpPostsAPIHandlerClient ¶
func RegisterIpPostsAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IpPostsAPIClient) error
RegisterIpPostsAPIHandlerClient registers the http handlers for service IpPostsAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "IpPostsAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "IpPostsAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "IpPostsAPIClient" to call the correct interceptors.
func RegisterIpPostsAPIHandlerFromEndpoint ¶
func RegisterIpPostsAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterIpPostsAPIHandlerFromEndpoint is same as RegisterIpPostsAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterIpPostsAPIHandlerServer ¶
func RegisterIpPostsAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IpPostsAPIServer) error
RegisterIpPostsAPIHandlerServer registers the http handlers for service IpPostsAPI to "mux". UnaryRPC :call IpPostsAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterIpPostsAPIHandlerFromEndpoint instead.
func RegisterIpPostsAPIServer ¶
func RegisterIpPostsAPIServer(s grpc.ServiceRegistrar, srv IpPostsAPIServer)
func RegisterIpVotesAPIHandler ¶
func RegisterIpVotesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterIpVotesAPIHandler registers the http handlers for service IpVotesAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterIpVotesAPIHandlerClient ¶
func RegisterIpVotesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IpVotesAPIClient) error
RegisterIpVotesAPIHandlerClient registers the http handlers for service IpVotesAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "IpVotesAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "IpVotesAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "IpVotesAPIClient" to call the correct interceptors.
func RegisterIpVotesAPIHandlerFromEndpoint ¶
func RegisterIpVotesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterIpVotesAPIHandlerFromEndpoint is same as RegisterIpVotesAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterIpVotesAPIHandlerServer ¶
func RegisterIpVotesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IpVotesAPIServer) error
RegisterIpVotesAPIHandlerServer registers the http handlers for service IpVotesAPI to "mux". UnaryRPC :call IpVotesAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterIpVotesAPIHandlerFromEndpoint instead.
func RegisterIpVotesAPIServer ¶
func RegisterIpVotesAPIServer(s grpc.ServiceRegistrar, srv IpVotesAPIServer)
func RegisterPostVotesAPIHandler ¶
func RegisterPostVotesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPostVotesAPIHandler registers the http handlers for service PostVotesAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPostVotesAPIHandlerClient ¶
func RegisterPostVotesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PostVotesAPIClient) error
RegisterPostVotesAPIHandlerClient registers the http handlers for service PostVotesAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PostVotesAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PostVotesAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PostVotesAPIClient" to call the correct interceptors.
func RegisterPostVotesAPIHandlerFromEndpoint ¶
func RegisterPostVotesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPostVotesAPIHandlerFromEndpoint is same as RegisterPostVotesAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPostVotesAPIHandlerServer ¶
func RegisterPostVotesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PostVotesAPIServer) error
RegisterPostVotesAPIHandlerServer registers the http handlers for service PostVotesAPI to "mux". UnaryRPC :call PostVotesAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPostVotesAPIHandlerFromEndpoint instead.
func RegisterPostVotesAPIServer ¶
func RegisterPostVotesAPIServer(s grpc.ServiceRegistrar, srv PostVotesAPIServer)
func RegisterPostsAPIHandler ¶
func RegisterPostsAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPostsAPIHandler registers the http handlers for service PostsAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPostsAPIHandlerClient ¶
func RegisterPostsAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PostsAPIClient) error
RegisterPostsAPIHandlerClient registers the http handlers for service PostsAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PostsAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PostsAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PostsAPIClient" to call the correct interceptors.
func RegisterPostsAPIHandlerFromEndpoint ¶
func RegisterPostsAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPostsAPIHandlerFromEndpoint is same as RegisterPostsAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPostsAPIHandlerServer ¶
func RegisterPostsAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PostsAPIServer) error
RegisterPostsAPIHandlerServer registers the http handlers for service PostsAPI to "mux". UnaryRPC :call PostsAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPostsAPIHandlerFromEndpoint instead.
func RegisterPostsAPIServer ¶
func RegisterPostsAPIServer(s grpc.ServiceRegistrar, srv PostsAPIServer)
func RegisterUsersAPIHandler ¶
func RegisterUsersAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUsersAPIHandler registers the http handlers for service UsersAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUsersAPIHandlerClient ¶
func RegisterUsersAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UsersAPIClient) error
RegisterUsersAPIHandlerClient registers the http handlers for service UsersAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UsersAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UsersAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UsersAPIClient" to call the correct interceptors.
func RegisterUsersAPIHandlerFromEndpoint ¶
func RegisterUsersAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUsersAPIHandlerFromEndpoint is same as RegisterUsersAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUsersAPIHandlerServer ¶
func RegisterUsersAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UsersAPIServer) error
RegisterUsersAPIHandlerServer registers the http handlers for service UsersAPI to "mux". UnaryRPC :call UsersAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUsersAPIHandlerFromEndpoint instead.
func RegisterUsersAPIServer ¶
func RegisterUsersAPIServer(s grpc.ServiceRegistrar, srv UsersAPIServer)
func RegisterVotesAPIHandler ¶
func RegisterVotesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterVotesAPIHandler registers the http handlers for service VotesAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterVotesAPIHandlerClient ¶
func RegisterVotesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VotesAPIClient) error
RegisterVotesAPIHandlerClient registers the http handlers for service VotesAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "VotesAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "VotesAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "VotesAPIClient" to call the correct interceptors.
func RegisterVotesAPIHandlerFromEndpoint ¶
func RegisterVotesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterVotesAPIHandlerFromEndpoint is same as RegisterVotesAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterVotesAPIHandlerServer ¶
func RegisterVotesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VotesAPIServer) error
RegisterVotesAPIHandlerServer registers the http handlers for service VotesAPI to "mux". UnaryRPC :call VotesAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterVotesAPIHandlerFromEndpoint instead.
func RegisterVotesAPIServer ¶
func RegisterVotesAPIServer(s grpc.ServiceRegistrar, srv VotesAPIServer)
Types ¶
type CreateIpPostRequest ¶
type CreateIpPostRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` IpPostId int32 `protobuf:"varint,2,opt,name=ip_post_id,json=ipPostId,proto3" json:"ip_post_id,omitempty"` IpPost *IpPost `protobuf:"bytes,3,opt,name=ip_post,json=ipPost,proto3" json:"ip_post,omitempty"` // contains filtered or unexported fields }
func (*CreateIpPostRequest) Descriptor
deprecated
func (*CreateIpPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateIpPostRequest.ProtoReflect.Descriptor instead.
func (*CreateIpPostRequest) GetIpPost ¶
func (x *CreateIpPostRequest) GetIpPost() *IpPost
func (*CreateIpPostRequest) GetIpPostId ¶
func (x *CreateIpPostRequest) GetIpPostId() int32
func (*CreateIpPostRequest) GetParent ¶
func (x *CreateIpPostRequest) GetParent() string
func (*CreateIpPostRequest) ProtoMessage ¶
func (*CreateIpPostRequest) ProtoMessage()
func (*CreateIpPostRequest) ProtoReflect ¶
func (x *CreateIpPostRequest) ProtoReflect() protoreflect.Message
func (*CreateIpPostRequest) Reset ¶
func (x *CreateIpPostRequest) Reset()
func (*CreateIpPostRequest) String ¶
func (x *CreateIpPostRequest) String() string
type CreateIpVoteRequest ¶
type CreateIpVoteRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` IpVoteId int32 `protobuf:"varint,2,opt,name=ip_vote_id,json=ipVoteId,proto3" json:"ip_vote_id,omitempty"` IpVote *IpVote `protobuf:"bytes,3,opt,name=ip_vote,json=ipVote,proto3" json:"ip_vote,omitempty"` // contains filtered or unexported fields }
func (*CreateIpVoteRequest) Descriptor
deprecated
func (*CreateIpVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateIpVoteRequest.ProtoReflect.Descriptor instead.
func (*CreateIpVoteRequest) GetIpVote ¶
func (x *CreateIpVoteRequest) GetIpVote() *IpVote
func (*CreateIpVoteRequest) GetIpVoteId ¶
func (x *CreateIpVoteRequest) GetIpVoteId() int32
func (*CreateIpVoteRequest) GetParent ¶
func (x *CreateIpVoteRequest) GetParent() string
func (*CreateIpVoteRequest) ProtoMessage ¶
func (*CreateIpVoteRequest) ProtoMessage()
func (*CreateIpVoteRequest) ProtoReflect ¶
func (x *CreateIpVoteRequest) ProtoReflect() protoreflect.Message
func (*CreateIpVoteRequest) Reset ¶
func (x *CreateIpVoteRequest) Reset()
func (*CreateIpVoteRequest) String ¶
func (x *CreateIpVoteRequest) String() string
type CreatePostRequest ¶
type CreatePostRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` PostId int32 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` Post *Post `protobuf:"bytes,3,opt,name=post,proto3" json:"post,omitempty"` // contains filtered or unexported fields }
func (*CreatePostRequest) Descriptor
deprecated
func (*CreatePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePostRequest.ProtoReflect.Descriptor instead.
func (*CreatePostRequest) GetParent ¶
func (x *CreatePostRequest) GetParent() string
func (*CreatePostRequest) GetPost ¶
func (x *CreatePostRequest) GetPost() *Post
func (*CreatePostRequest) GetPostId ¶
func (x *CreatePostRequest) GetPostId() int32
func (*CreatePostRequest) ProtoMessage ¶
func (*CreatePostRequest) ProtoMessage()
func (*CreatePostRequest) ProtoReflect ¶
func (x *CreatePostRequest) ProtoReflect() protoreflect.Message
func (*CreatePostRequest) Reset ¶
func (x *CreatePostRequest) Reset()
func (*CreatePostRequest) String ¶
func (x *CreatePostRequest) String() string
type CreatePostVoteRequest ¶
type CreatePostVoteRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` PostVoteId int32 `protobuf:"varint,2,opt,name=post_vote_id,json=postVoteId,proto3" json:"post_vote_id,omitempty"` PostVote *PostVote `protobuf:"bytes,3,opt,name=post_vote,json=postVote,proto3" json:"post_vote,omitempty"` // contains filtered or unexported fields }
func (*CreatePostVoteRequest) Descriptor
deprecated
func (*CreatePostVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePostVoteRequest.ProtoReflect.Descriptor instead.
func (*CreatePostVoteRequest) GetParent ¶
func (x *CreatePostVoteRequest) GetParent() string
func (*CreatePostVoteRequest) GetPostVote ¶
func (x *CreatePostVoteRequest) GetPostVote() *PostVote
func (*CreatePostVoteRequest) GetPostVoteId ¶
func (x *CreatePostVoteRequest) GetPostVoteId() int32
func (*CreatePostVoteRequest) ProtoMessage ¶
func (*CreatePostVoteRequest) ProtoMessage()
func (*CreatePostVoteRequest) ProtoReflect ¶
func (x *CreatePostVoteRequest) ProtoReflect() protoreflect.Message
func (*CreatePostVoteRequest) Reset ¶
func (x *CreatePostVoteRequest) Reset()
func (*CreatePostVoteRequest) String ¶
func (x *CreatePostVoteRequest) String() string
type CreateUserRequest ¶
type CreateUserRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetParent ¶
func (x *CreateUserRequest) GetParent() string
func (*CreateUserRequest) GetUser ¶
func (x *CreateUserRequest) GetUser() *User
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
type CreateVoteRequest ¶
type CreateVoteRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` Vote *Vote `protobuf:"bytes,2,opt,name=vote,proto3" json:"vote,omitempty"` // contains filtered or unexported fields }
func (*CreateVoteRequest) Descriptor
deprecated
func (*CreateVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateVoteRequest.ProtoReflect.Descriptor instead.
func (*CreateVoteRequest) GetParent ¶
func (x *CreateVoteRequest) GetParent() string
func (*CreateVoteRequest) GetVote ¶
func (x *CreateVoteRequest) GetVote() *Vote
func (*CreateVoteRequest) ProtoMessage ¶
func (*CreateVoteRequest) ProtoMessage()
func (*CreateVoteRequest) ProtoReflect ¶
func (x *CreateVoteRequest) ProtoReflect() protoreflect.Message
func (*CreateVoteRequest) Reset ¶
func (x *CreateVoteRequest) Reset()
func (*CreateVoteRequest) String ¶
func (x *CreateVoteRequest) String() string
type DeleteIpPostRequest ¶
type DeleteIpPostRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteIpPostRequest) Descriptor
deprecated
func (*DeleteIpPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteIpPostRequest.ProtoReflect.Descriptor instead.
func (*DeleteIpPostRequest) GetName ¶
func (x *DeleteIpPostRequest) GetName() string
func (*DeleteIpPostRequest) ProtoMessage ¶
func (*DeleteIpPostRequest) ProtoMessage()
func (*DeleteIpPostRequest) ProtoReflect ¶
func (x *DeleteIpPostRequest) ProtoReflect() protoreflect.Message
func (*DeleteIpPostRequest) Reset ¶
func (x *DeleteIpPostRequest) Reset()
func (*DeleteIpPostRequest) String ¶
func (x *DeleteIpPostRequest) String() string
type DeleteIpVoteRequest ¶
type DeleteIpVoteRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteIpVoteRequest) Descriptor
deprecated
func (*DeleteIpVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteIpVoteRequest.ProtoReflect.Descriptor instead.
func (*DeleteIpVoteRequest) GetName ¶
func (x *DeleteIpVoteRequest) GetName() string
func (*DeleteIpVoteRequest) ProtoMessage ¶
func (*DeleteIpVoteRequest) ProtoMessage()
func (*DeleteIpVoteRequest) ProtoReflect ¶
func (x *DeleteIpVoteRequest) ProtoReflect() protoreflect.Message
func (*DeleteIpVoteRequest) Reset ¶
func (x *DeleteIpVoteRequest) Reset()
func (*DeleteIpVoteRequest) String ¶
func (x *DeleteIpVoteRequest) String() string
type DeletePostRequest ¶
type DeletePostRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeletePostRequest) Descriptor
deprecated
func (*DeletePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePostRequest.ProtoReflect.Descriptor instead.
func (*DeletePostRequest) GetName ¶
func (x *DeletePostRequest) GetName() string
func (*DeletePostRequest) ProtoMessage ¶
func (*DeletePostRequest) ProtoMessage()
func (*DeletePostRequest) ProtoReflect ¶
func (x *DeletePostRequest) ProtoReflect() protoreflect.Message
func (*DeletePostRequest) Reset ¶
func (x *DeletePostRequest) Reset()
func (*DeletePostRequest) String ¶
func (x *DeletePostRequest) String() string
type DeletePostVoteRequest ¶
type DeletePostVoteRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeletePostVoteRequest) Descriptor
deprecated
func (*DeletePostVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePostVoteRequest.ProtoReflect.Descriptor instead.
func (*DeletePostVoteRequest) GetName ¶
func (x *DeletePostVoteRequest) GetName() string
func (*DeletePostVoteRequest) ProtoMessage ¶
func (*DeletePostVoteRequest) ProtoMessage()
func (*DeletePostVoteRequest) ProtoReflect ¶
func (x *DeletePostVoteRequest) ProtoReflect() protoreflect.Message
func (*DeletePostVoteRequest) Reset ¶
func (x *DeletePostVoteRequest) Reset()
func (*DeletePostVoteRequest) String ¶
func (x *DeletePostVoteRequest) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetName ¶
func (x *DeleteUserRequest) GetName() string
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
type DeleteVoteRequest ¶
type DeleteVoteRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteVoteRequest) Descriptor
deprecated
func (*DeleteVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteVoteRequest.ProtoReflect.Descriptor instead.
func (*DeleteVoteRequest) GetName ¶
func (x *DeleteVoteRequest) GetName() string
func (*DeleteVoteRequest) ProtoMessage ¶
func (*DeleteVoteRequest) ProtoMessage()
func (*DeleteVoteRequest) ProtoReflect ¶
func (x *DeleteVoteRequest) ProtoReflect() protoreflect.Message
func (*DeleteVoteRequest) Reset ¶
func (x *DeleteVoteRequest) Reset()
func (*DeleteVoteRequest) String ¶
func (x *DeleteVoteRequest) String() string
type GetByPidVidRequest ¶
type GetByPidVidRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetByPidVidRequest) Descriptor
deprecated
func (*GetByPidVidRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByPidVidRequest.ProtoReflect.Descriptor instead.
func (*GetByPidVidRequest) GetName ¶
func (x *GetByPidVidRequest) GetName() string
func (*GetByPidVidRequest) ProtoMessage ¶
func (*GetByPidVidRequest) ProtoMessage()
func (*GetByPidVidRequest) ProtoReflect ¶
func (x *GetByPidVidRequest) ProtoReflect() protoreflect.Message
func (*GetByPidVidRequest) Reset ¶
func (x *GetByPidVidRequest) Reset()
func (*GetByPidVidRequest) String ¶
func (x *GetByPidVidRequest) String() string
type GetIpPostRequest ¶
type GetIpPostRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetIpPostRequest) Descriptor
deprecated
func (*GetIpPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetIpPostRequest.ProtoReflect.Descriptor instead.
func (*GetIpPostRequest) GetName ¶
func (x *GetIpPostRequest) GetName() string
func (*GetIpPostRequest) ProtoMessage ¶
func (*GetIpPostRequest) ProtoMessage()
func (*GetIpPostRequest) ProtoReflect ¶
func (x *GetIpPostRequest) ProtoReflect() protoreflect.Message
func (*GetIpPostRequest) Reset ¶
func (x *GetIpPostRequest) Reset()
func (*GetIpPostRequest) String ¶
func (x *GetIpPostRequest) String() string
type GetIpVoteRequest ¶
type GetIpVoteRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetIpVoteRequest) Descriptor
deprecated
func (*GetIpVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetIpVoteRequest.ProtoReflect.Descriptor instead.
func (*GetIpVoteRequest) GetName ¶
func (x *GetIpVoteRequest) GetName() string
func (*GetIpVoteRequest) ProtoMessage ¶
func (*GetIpVoteRequest) ProtoMessage()
func (*GetIpVoteRequest) ProtoReflect ¶
func (x *GetIpVoteRequest) ProtoReflect() protoreflect.Message
func (*GetIpVoteRequest) Reset ¶
func (x *GetIpVoteRequest) Reset()
func (*GetIpVoteRequest) String ¶
func (x *GetIpVoteRequest) String() string
type GetPostRequest ¶
type GetPostRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetPostRequest) Descriptor
deprecated
func (*GetPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPostRequest.ProtoReflect.Descriptor instead.
func (*GetPostRequest) GetName ¶
func (x *GetPostRequest) GetName() string
func (*GetPostRequest) ProtoMessage ¶
func (*GetPostRequest) ProtoMessage()
func (*GetPostRequest) ProtoReflect ¶
func (x *GetPostRequest) ProtoReflect() protoreflect.Message
func (*GetPostRequest) Reset ¶
func (x *GetPostRequest) Reset()
func (*GetPostRequest) String ¶
func (x *GetPostRequest) String() string
type GetPostVoteRequest ¶
type GetPostVoteRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetPostVoteRequest) Descriptor
deprecated
func (*GetPostVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPostVoteRequest.ProtoReflect.Descriptor instead.
func (*GetPostVoteRequest) GetName ¶
func (x *GetPostVoteRequest) GetName() string
func (*GetPostVoteRequest) ProtoMessage ¶
func (*GetPostVoteRequest) ProtoMessage()
func (*GetPostVoteRequest) ProtoReflect ¶
func (x *GetPostVoteRequest) ProtoReflect() protoreflect.Message
func (*GetPostVoteRequest) Reset ¶
func (x *GetPostVoteRequest) Reset()
func (*GetPostVoteRequest) String ¶
func (x *GetPostVoteRequest) String() string
type GetUserRequest ¶
type GetUserRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetName ¶
func (x *GetUserRequest) GetName() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetVoteRequest ¶
type GetVoteRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetVoteRequest) Descriptor
deprecated
func (*GetVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetVoteRequest.ProtoReflect.Descriptor instead.
func (*GetVoteRequest) GetName ¶
func (x *GetVoteRequest) GetName() string
func (*GetVoteRequest) ProtoMessage ¶
func (*GetVoteRequest) ProtoMessage()
func (*GetVoteRequest) ProtoReflect ¶
func (x *GetVoteRequest) ProtoReflect() protoreflect.Message
func (*GetVoteRequest) Reset ¶
func (x *GetVoteRequest) Reset()
func (*GetVoteRequest) String ¶
func (x *GetVoteRequest) String() string
type IpPost ¶
type IpPost struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` IpPostId int32 `protobuf:"varint,2,opt,name=ip_post_id,json=ipPostId,proto3" json:"ip_post_id,omitempty"` Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` PostId int32 `protobuf:"varint,4,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` // contains filtered or unexported fields }
func (*IpPost) Descriptor
deprecated
func (*IpPost) GetIpPostId ¶
func (*IpPost) ProtoMessage ¶
func (*IpPost) ProtoMessage()
func (*IpPost) ProtoReflect ¶
func (x *IpPost) ProtoReflect() protoreflect.Message
type IpPosts ¶
type IpPosts struct { IpPosts []*IpPost `protobuf:"bytes,1,rep,name=ip_posts,json=ipPosts,proto3" json:"ip_posts,omitempty"` // contains filtered or unexported fields }
func (*IpPosts) Descriptor
deprecated
func (*IpPosts) GetIpPosts ¶
func (*IpPosts) ProtoMessage ¶
func (*IpPosts) ProtoMessage()
func (*IpPosts) ProtoReflect ¶
func (x *IpPosts) ProtoReflect() protoreflect.Message
type IpPostsAPIClient ¶
type IpPostsAPIClient interface { ListIpPosts(ctx context.Context, in *ListIpPostsRequest, opts ...grpc.CallOption) (*ListIpPostsResponse, error) GetIpPost(ctx context.Context, in *GetIpPostRequest, opts ...grpc.CallOption) (*IpPost, error) CreateIpPost(ctx context.Context, in *CreateIpPostRequest, opts ...grpc.CallOption) (*IpPost, error) UpdateIpPost(ctx context.Context, in *UpdateIpPostRequest, opts ...grpc.CallOption) (*IpPost, error) DeleteIpPost(ctx context.Context, in *DeleteIpPostRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
IpPostsAPIClient is the client API for IpPostsAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewIpPostsAPIClient ¶
func NewIpPostsAPIClient(cc grpc.ClientConnInterface) IpPostsAPIClient
type IpPostsAPIServer ¶
type IpPostsAPIServer interface { ListIpPosts(context.Context, *ListIpPostsRequest) (*ListIpPostsResponse, error) GetIpPost(context.Context, *GetIpPostRequest) (*IpPost, error) CreateIpPost(context.Context, *CreateIpPostRequest) (*IpPost, error) UpdateIpPost(context.Context, *UpdateIpPostRequest) (*IpPost, error) DeleteIpPost(context.Context, *DeleteIpPostRequest) (*empty.Empty, error) // contains filtered or unexported methods }
IpPostsAPIServer is the server API for IpPostsAPI service. All implementations must embed UnimplementedIpPostsAPIServer for forward compatibility
type IpVote ¶
type IpVote struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` IpVoteId int32 `protobuf:"varint,2,opt,name=ip_vote_id,json=ipVoteId,proto3" json:"ip_vote_id,omitempty"` Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` VoteId int32 `protobuf:"varint,4,opt,name=vote_id,json=voteId,proto3" json:"vote_id,omitempty"` Opts string `protobuf:"bytes,5,opt,name=opts,proto3" json:"opts,omitempty"` TxtField string `protobuf:"bytes,6,opt,name=txtField,proto3" json:"txtField,omitempty"` PostId int32 `protobuf:"varint,7,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` // contains filtered or unexported fields }
func (*IpVote) Descriptor
deprecated
func (*IpVote) GetIpVoteId ¶
func (*IpVote) GetTxtField ¶
func (*IpVote) ProtoMessage ¶
func (*IpVote) ProtoMessage()
func (*IpVote) ProtoReflect ¶
func (x *IpVote) ProtoReflect() protoreflect.Message
type IpVotes ¶
type IpVotes struct { IpVotes []*IpVote `protobuf:"bytes,1,rep,name=ip_votes,json=ipVotes,proto3" json:"ip_votes,omitempty"` // contains filtered or unexported fields }
func (*IpVotes) Descriptor
deprecated
func (*IpVotes) GetIpVotes ¶
func (*IpVotes) ProtoMessage ¶
func (*IpVotes) ProtoMessage()
func (*IpVotes) ProtoReflect ¶
func (x *IpVotes) ProtoReflect() protoreflect.Message
type IpVotesAPIClient ¶
type IpVotesAPIClient interface { ListIpVotes(ctx context.Context, in *ListIpVotesRequest, opts ...grpc.CallOption) (*ListIpVotesResponse, error) GetIpVote(ctx context.Context, in *GetIpVoteRequest, opts ...grpc.CallOption) (*IpVote, error) CreateIpVote(ctx context.Context, in *CreateIpVoteRequest, opts ...grpc.CallOption) (*IpVote, error) UpdateIpVote(ctx context.Context, in *UpdateIpVoteRequest, opts ...grpc.CallOption) (*IpVote, error) DeleteIpVote(ctx context.Context, in *DeleteIpVoteRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
IpVotesAPIClient is the client API for IpVotesAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewIpVotesAPIClient ¶
func NewIpVotesAPIClient(cc grpc.ClientConnInterface) IpVotesAPIClient
type IpVotesAPIServer ¶
type IpVotesAPIServer interface { ListIpVotes(context.Context, *ListIpVotesRequest) (*ListIpVotesResponse, error) GetIpVote(context.Context, *GetIpVoteRequest) (*IpVote, error) CreateIpVote(context.Context, *CreateIpVoteRequest) (*IpVote, error) UpdateIpVote(context.Context, *UpdateIpVoteRequest) (*IpVote, error) DeleteIpVote(context.Context, *DeleteIpVoteRequest) (*empty.Empty, error) // contains filtered or unexported methods }
IpVotesAPIServer is the server API for IpVotesAPI service. All implementations must embed UnimplementedIpVotesAPIServer for forward compatibility
type ListIpPostsRequest ¶
type ListIpPostsRequest struct { // The parent resource name Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of items to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListIpPostsRequest) Descriptor
deprecated
func (*ListIpPostsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListIpPostsRequest.ProtoReflect.Descriptor instead.
func (*ListIpPostsRequest) GetPageSize ¶
func (x *ListIpPostsRequest) GetPageSize() int32
func (*ListIpPostsRequest) GetPageToken ¶
func (x *ListIpPostsRequest) GetPageToken() string
func (*ListIpPostsRequest) GetParent ¶
func (x *ListIpPostsRequest) GetParent() string
func (*ListIpPostsRequest) ProtoMessage ¶
func (*ListIpPostsRequest) ProtoMessage()
func (*ListIpPostsRequest) ProtoReflect ¶
func (x *ListIpPostsRequest) ProtoReflect() protoreflect.Message
func (*ListIpPostsRequest) Reset ¶
func (x *ListIpPostsRequest) Reset()
func (*ListIpPostsRequest) String ¶
func (x *ListIpPostsRequest) String() string
type ListIpPostsResponse ¶
type ListIpPostsResponse struct { IpPosts []*IpPost `protobuf:"bytes,1,rep,name=ipPosts,proto3" json:"ipPosts,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListIpPostsResponse) Descriptor
deprecated
func (*ListIpPostsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListIpPostsResponse.ProtoReflect.Descriptor instead.
func (*ListIpPostsResponse) GetIpPosts ¶
func (x *ListIpPostsResponse) GetIpPosts() []*IpPost
func (*ListIpPostsResponse) GetNextPageToken ¶
func (x *ListIpPostsResponse) GetNextPageToken() string
func (*ListIpPostsResponse) ProtoMessage ¶
func (*ListIpPostsResponse) ProtoMessage()
func (*ListIpPostsResponse) ProtoReflect ¶
func (x *ListIpPostsResponse) ProtoReflect() protoreflect.Message
func (*ListIpPostsResponse) Reset ¶
func (x *ListIpPostsResponse) Reset()
func (*ListIpPostsResponse) String ¶
func (x *ListIpPostsResponse) String() string
type ListIpVotesRequest ¶
type ListIpVotesRequest struct { // The parent resource name Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of items to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListIpVotesRequest) Descriptor
deprecated
func (*ListIpVotesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListIpVotesRequest.ProtoReflect.Descriptor instead.
func (*ListIpVotesRequest) GetPageSize ¶
func (x *ListIpVotesRequest) GetPageSize() int32
func (*ListIpVotesRequest) GetPageToken ¶
func (x *ListIpVotesRequest) GetPageToken() string
func (*ListIpVotesRequest) GetParent ¶
func (x *ListIpVotesRequest) GetParent() string
func (*ListIpVotesRequest) ProtoMessage ¶
func (*ListIpVotesRequest) ProtoMessage()
func (*ListIpVotesRequest) ProtoReflect ¶
func (x *ListIpVotesRequest) ProtoReflect() protoreflect.Message
func (*ListIpVotesRequest) Reset ¶
func (x *ListIpVotesRequest) Reset()
func (*ListIpVotesRequest) String ¶
func (x *ListIpVotesRequest) String() string
type ListIpVotesResponse ¶
type ListIpVotesResponse struct { IpVotes []*IpVote `protobuf:"bytes,1,rep,name=ipVotes,proto3" json:"ipVotes,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListIpVotesResponse) Descriptor
deprecated
func (*ListIpVotesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListIpVotesResponse.ProtoReflect.Descriptor instead.
func (*ListIpVotesResponse) GetIpVotes ¶
func (x *ListIpVotesResponse) GetIpVotes() []*IpVote
func (*ListIpVotesResponse) GetNextPageToken ¶
func (x *ListIpVotesResponse) GetNextPageToken() string
func (*ListIpVotesResponse) ProtoMessage ¶
func (*ListIpVotesResponse) ProtoMessage()
func (*ListIpVotesResponse) ProtoReflect ¶
func (x *ListIpVotesResponse) ProtoReflect() protoreflect.Message
func (*ListIpVotesResponse) Reset ¶
func (x *ListIpVotesResponse) Reset()
func (*ListIpVotesResponse) String ¶
func (x *ListIpVotesResponse) String() string
type ListPostVotesRequest ¶
type ListPostVotesRequest struct { // The parent resource name Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of items to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListPostVotesRequest) Descriptor
deprecated
func (*ListPostVotesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPostVotesRequest.ProtoReflect.Descriptor instead.
func (*ListPostVotesRequest) GetPageSize ¶
func (x *ListPostVotesRequest) GetPageSize() int32
func (*ListPostVotesRequest) GetPageToken ¶
func (x *ListPostVotesRequest) GetPageToken() string
func (*ListPostVotesRequest) GetParent ¶
func (x *ListPostVotesRequest) GetParent() string
func (*ListPostVotesRequest) ProtoMessage ¶
func (*ListPostVotesRequest) ProtoMessage()
func (*ListPostVotesRequest) ProtoReflect ¶
func (x *ListPostVotesRequest) ProtoReflect() protoreflect.Message
func (*ListPostVotesRequest) Reset ¶
func (x *ListPostVotesRequest) Reset()
func (*ListPostVotesRequest) String ¶
func (x *ListPostVotesRequest) String() string
type ListPostVotesResponse ¶
type ListPostVotesResponse struct { PostVotes []*PostVote `protobuf:"bytes,1,rep,name=postVotes,proto3" json:"postVotes,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListPostVotesResponse) Descriptor
deprecated
func (*ListPostVotesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPostVotesResponse.ProtoReflect.Descriptor instead.
func (*ListPostVotesResponse) GetNextPageToken ¶
func (x *ListPostVotesResponse) GetNextPageToken() string
func (*ListPostVotesResponse) GetPostVotes ¶
func (x *ListPostVotesResponse) GetPostVotes() []*PostVote
func (*ListPostVotesResponse) ProtoMessage ¶
func (*ListPostVotesResponse) ProtoMessage()
func (*ListPostVotesResponse) ProtoReflect ¶
func (x *ListPostVotesResponse) ProtoReflect() protoreflect.Message
func (*ListPostVotesResponse) Reset ¶
func (x *ListPostVotesResponse) Reset()
func (*ListPostVotesResponse) String ¶
func (x *ListPostVotesResponse) String() string
type ListPostsRequest ¶
type ListPostsRequest struct { // The parent resource name Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of items to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListPostsRequest) Descriptor
deprecated
func (*ListPostsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPostsRequest.ProtoReflect.Descriptor instead.
func (*ListPostsRequest) GetPageSize ¶
func (x *ListPostsRequest) GetPageSize() int32
func (*ListPostsRequest) GetPageToken ¶
func (x *ListPostsRequest) GetPageToken() string
func (*ListPostsRequest) GetParent ¶
func (x *ListPostsRequest) GetParent() string
func (*ListPostsRequest) ProtoMessage ¶
func (*ListPostsRequest) ProtoMessage()
func (*ListPostsRequest) ProtoReflect ¶
func (x *ListPostsRequest) ProtoReflect() protoreflect.Message
func (*ListPostsRequest) Reset ¶
func (x *ListPostsRequest) Reset()
func (*ListPostsRequest) String ¶
func (x *ListPostsRequest) String() string
type ListPostsResponse ¶
type ListPostsResponse struct { Posts []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListPostsResponse) Descriptor
deprecated
func (*ListPostsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPostsResponse.ProtoReflect.Descriptor instead.
func (*ListPostsResponse) GetNextPageToken ¶
func (x *ListPostsResponse) GetNextPageToken() string
func (*ListPostsResponse) GetPosts ¶
func (x *ListPostsResponse) GetPosts() []*Post
func (*ListPostsResponse) ProtoMessage ¶
func (*ListPostsResponse) ProtoMessage()
func (*ListPostsResponse) ProtoReflect ¶
func (x *ListPostsResponse) ProtoReflect() protoreflect.Message
func (*ListPostsResponse) Reset ¶
func (x *ListPostsResponse) Reset()
func (*ListPostsResponse) String ¶
func (x *ListPostsResponse) String() string
type ListUsersRequest ¶
type ListUsersRequest struct { // The parent resource name Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of items to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListUsersRequest) Descriptor
deprecated
func (*ListUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.
func (*ListUsersRequest) GetPageSize ¶
func (x *ListUsersRequest) GetPageSize() int32
func (*ListUsersRequest) GetPageToken ¶
func (x *ListUsersRequest) GetPageToken() string
func (*ListUsersRequest) GetParent ¶
func (x *ListUsersRequest) GetParent() string
func (*ListUsersRequest) ProtoMessage ¶
func (*ListUsersRequest) ProtoMessage()
func (*ListUsersRequest) ProtoReflect ¶
func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
func (*ListUsersRequest) Reset ¶
func (x *ListUsersRequest) Reset()
func (*ListUsersRequest) String ¶
func (x *ListUsersRequest) String() string
type ListUsersResponse ¶
type ListUsersResponse struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListUsersResponse) Descriptor
deprecated
func (*ListUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.
func (*ListUsersResponse) GetNextPageToken ¶
func (x *ListUsersResponse) GetNextPageToken() string
func (*ListUsersResponse) GetUsers ¶
func (x *ListUsersResponse) GetUsers() []*User
func (*ListUsersResponse) ProtoMessage ¶
func (*ListUsersResponse) ProtoMessage()
func (*ListUsersResponse) ProtoReflect ¶
func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
func (*ListUsersResponse) Reset ¶
func (x *ListUsersResponse) Reset()
func (*ListUsersResponse) String ¶
func (x *ListUsersResponse) String() string
type ListVidsByPidRequest ¶
type ListVidsByPidRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ListVidsByPidRequest) Descriptor
deprecated
func (*ListVidsByPidRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListVidsByPidRequest.ProtoReflect.Descriptor instead.
func (*ListVidsByPidRequest) GetName ¶
func (x *ListVidsByPidRequest) GetName() string
func (*ListVidsByPidRequest) ProtoMessage ¶
func (*ListVidsByPidRequest) ProtoMessage()
func (*ListVidsByPidRequest) ProtoReflect ¶
func (x *ListVidsByPidRequest) ProtoReflect() protoreflect.Message
func (*ListVidsByPidRequest) Reset ¶
func (x *ListVidsByPidRequest) Reset()
func (*ListVidsByPidRequest) String ¶
func (x *ListVidsByPidRequest) String() string
type ListVidsByPidResponse ¶
type ListVidsByPidResponse struct { Pid int32 `protobuf:"varint,1,opt,name=Pid,proto3" json:"Pid,omitempty"` Vids []int32 `protobuf:"varint,2,rep,packed,name=Vids,proto3" json:"Vids,omitempty"` // contains filtered or unexported fields }
func (*ListVidsByPidResponse) Descriptor
deprecated
func (*ListVidsByPidResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListVidsByPidResponse.ProtoReflect.Descriptor instead.
func (*ListVidsByPidResponse) GetPid ¶
func (x *ListVidsByPidResponse) GetPid() int32
func (*ListVidsByPidResponse) GetVids ¶
func (x *ListVidsByPidResponse) GetVids() []int32
func (*ListVidsByPidResponse) ProtoMessage ¶
func (*ListVidsByPidResponse) ProtoMessage()
func (*ListVidsByPidResponse) ProtoReflect ¶
func (x *ListVidsByPidResponse) ProtoReflect() protoreflect.Message
func (*ListVidsByPidResponse) Reset ¶
func (x *ListVidsByPidResponse) Reset()
func (*ListVidsByPidResponse) String ¶
func (x *ListVidsByPidResponse) String() string
type ListVotesRequest ¶
type ListVotesRequest struct { // The parent resource name Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of items to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListVotesRequest) Descriptor
deprecated
func (*ListVotesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListVotesRequest.ProtoReflect.Descriptor instead.
func (*ListVotesRequest) GetPageSize ¶
func (x *ListVotesRequest) GetPageSize() int32
func (*ListVotesRequest) GetPageToken ¶
func (x *ListVotesRequest) GetPageToken() string
func (*ListVotesRequest) GetParent ¶
func (x *ListVotesRequest) GetParent() string
func (*ListVotesRequest) ProtoMessage ¶
func (*ListVotesRequest) ProtoMessage()
func (*ListVotesRequest) ProtoReflect ¶
func (x *ListVotesRequest) ProtoReflect() protoreflect.Message
func (*ListVotesRequest) Reset ¶
func (x *ListVotesRequest) Reset()
func (*ListVotesRequest) String ¶
func (x *ListVotesRequest) String() string
type ListVotesResponse ¶
type ListVotesResponse struct { Votes []*Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListVotesResponse) Descriptor
deprecated
func (*ListVotesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListVotesResponse.ProtoReflect.Descriptor instead.
func (*ListVotesResponse) GetNextPageToken ¶
func (x *ListVotesResponse) GetNextPageToken() string
func (*ListVotesResponse) GetVotes ¶
func (x *ListVotesResponse) GetVotes() []*Vote
func (*ListVotesResponse) ProtoMessage ¶
func (*ListVotesResponse) ProtoMessage()
func (*ListVotesResponse) ProtoReflect ¶
func (x *ListVotesResponse) ProtoReflect() protoreflect.Message
func (*ListVotesResponse) Reset ¶
func (x *ListVotesResponse) Reset()
func (*ListVotesResponse) String ¶
func (x *ListVotesResponse) String() string
type PermanentlyDeleteUserRequest ¶
type PermanentlyDeleteUserRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*PermanentlyDeleteUserRequest) Descriptor
deprecated
func (*PermanentlyDeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use PermanentlyDeleteUserRequest.ProtoReflect.Descriptor instead.
func (*PermanentlyDeleteUserRequest) GetName ¶
func (x *PermanentlyDeleteUserRequest) GetName() string
func (*PermanentlyDeleteUserRequest) ProtoMessage ¶
func (*PermanentlyDeleteUserRequest) ProtoMessage()
func (*PermanentlyDeleteUserRequest) ProtoReflect ¶
func (x *PermanentlyDeleteUserRequest) ProtoReflect() protoreflect.Message
func (*PermanentlyDeleteUserRequest) Reset ¶
func (x *PermanentlyDeleteUserRequest) Reset()
func (*PermanentlyDeleteUserRequest) String ¶
func (x *PermanentlyDeleteUserRequest) String() string
type Post ¶
type Post struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` PostId int32 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` IsClosed int32 `protobuf:"varint,4,opt,name=is_closed,json=isClosed,proto3" json:"is_closed,omitempty"` Detail string `protobuf:"bytes,5,opt,name=detail,proto3" json:"detail,omitempty"` CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
func (*Post) Descriptor
deprecated
func (*Post) GetCreateTime ¶
func (*Post) GetIsClosed ¶
func (*Post) GetUpdateTime ¶
func (*Post) ProtoMessage ¶
func (*Post) ProtoMessage()
func (*Post) ProtoReflect ¶
func (x *Post) ProtoReflect() protoreflect.Message
type PostVote ¶
type PostVote struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` PostVoteId int32 `protobuf:"varint,2,opt,name=post_vote_id,json=postVoteId,proto3" json:"post_vote_id,omitempty"` PostId int32 `protobuf:"varint,3,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` VoteId int32 `protobuf:"varint,4,opt,name=vote_id,json=voteId,proto3" json:"vote_id,omitempty"` // contains filtered or unexported fields }
func (*PostVote) Descriptor
deprecated
func (*PostVote) GetPostVoteId ¶
func (*PostVote) ProtoMessage ¶
func (*PostVote) ProtoMessage()
func (*PostVote) ProtoReflect ¶
func (x *PostVote) ProtoReflect() protoreflect.Message
type PostVotes ¶
type PostVotes struct { PostVotes []*PostVote `protobuf:"bytes,1,rep,name=post_votes,json=postVotes,proto3" json:"post_votes,omitempty"` // contains filtered or unexported fields }
func (*PostVotes) Descriptor
deprecated
func (*PostVotes) GetPostVotes ¶
func (*PostVotes) ProtoMessage ¶
func (*PostVotes) ProtoMessage()
func (*PostVotes) ProtoReflect ¶
func (x *PostVotes) ProtoReflect() protoreflect.Message
type PostVotesAPIClient ¶
type PostVotesAPIClient interface { ListPostVotes(ctx context.Context, in *ListPostVotesRequest, opts ...grpc.CallOption) (*ListPostVotesResponse, error) GetByPidVid(ctx context.Context, in *GetByPidVidRequest, opts ...grpc.CallOption) (*PostVote, error) GetPostVote(ctx context.Context, in *GetPostVoteRequest, opts ...grpc.CallOption) (*PostVote, error) ListVidsByPid(ctx context.Context, in *ListVidsByPidRequest, opts ...grpc.CallOption) (*ListVidsByPidResponse, error) CreatePostVote(ctx context.Context, in *CreatePostVoteRequest, opts ...grpc.CallOption) (*PostVote, error) UpdatePostVote(ctx context.Context, in *UpdatePostVoteRequest, opts ...grpc.CallOption) (*PostVote, error) DeletePostVote(ctx context.Context, in *DeletePostVoteRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
PostVotesAPIClient is the client API for PostVotesAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPostVotesAPIClient ¶
func NewPostVotesAPIClient(cc grpc.ClientConnInterface) PostVotesAPIClient
type PostVotesAPIServer ¶
type PostVotesAPIServer interface { ListPostVotes(context.Context, *ListPostVotesRequest) (*ListPostVotesResponse, error) GetByPidVid(context.Context, *GetByPidVidRequest) (*PostVote, error) GetPostVote(context.Context, *GetPostVoteRequest) (*PostVote, error) ListVidsByPid(context.Context, *ListVidsByPidRequest) (*ListVidsByPidResponse, error) CreatePostVote(context.Context, *CreatePostVoteRequest) (*PostVote, error) UpdatePostVote(context.Context, *UpdatePostVoteRequest) (*PostVote, error) DeletePostVote(context.Context, *DeletePostVoteRequest) (*empty.Empty, error) // contains filtered or unexported methods }
PostVotesAPIServer is the server API for PostVotesAPI service. All implementations must embed UnimplementedPostVotesAPIServer for forward compatibility
type PostsAPIClient ¶
type PostsAPIClient interface { ListPosts(ctx context.Context, in *ListPostsRequest, opts ...grpc.CallOption) (*ListPostsResponse, error) GetPost(ctx context.Context, in *GetPostRequest, opts ...grpc.CallOption) (*Post, error) SearchPosts(ctx context.Context, in *SearchPostsRequest, opts ...grpc.CallOption) (*SearchPostsResponse, error) CreatePost(ctx context.Context, in *CreatePostRequest, opts ...grpc.CallOption) (*Post, error) UpdatePost(ctx context.Context, in *UpdatePostRequest, opts ...grpc.CallOption) (*Post, error) DeletePost(ctx context.Context, in *DeletePostRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
PostsAPIClient is the client API for PostsAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPostsAPIClient ¶
func NewPostsAPIClient(cc grpc.ClientConnInterface) PostsAPIClient
type PostsAPIServer ¶
type PostsAPIServer interface { ListPosts(context.Context, *ListPostsRequest) (*ListPostsResponse, error) GetPost(context.Context, *GetPostRequest) (*Post, error) SearchPosts(context.Context, *SearchPostsRequest) (*SearchPostsResponse, error) CreatePost(context.Context, *CreatePostRequest) (*Post, error) UpdatePost(context.Context, *UpdatePostRequest) (*Post, error) DeletePost(context.Context, *DeletePostRequest) (*empty.Empty, error) // contains filtered or unexported methods }
PostsAPIServer is the server API for PostsAPI service. All implementations must embed UnimplementedPostsAPIServer for forward compatibility
type SearchPostsRequest ¶
type SearchPostsRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*SearchPostsRequest) Descriptor
deprecated
func (*SearchPostsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchPostsRequest.ProtoReflect.Descriptor instead.
func (*SearchPostsRequest) GetName ¶
func (x *SearchPostsRequest) GetName() string
func (*SearchPostsRequest) ProtoMessage ¶
func (*SearchPostsRequest) ProtoMessage()
func (*SearchPostsRequest) ProtoReflect ¶
func (x *SearchPostsRequest) ProtoReflect() protoreflect.Message
func (*SearchPostsRequest) Reset ¶
func (x *SearchPostsRequest) Reset()
func (*SearchPostsRequest) String ¶
func (x *SearchPostsRequest) String() string
type SearchPostsResponse ¶
type SearchPostsResponse struct { Posts []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*SearchPostsResponse) Descriptor
deprecated
func (*SearchPostsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchPostsResponse.ProtoReflect.Descriptor instead.
func (*SearchPostsResponse) GetNextPageToken ¶
func (x *SearchPostsResponse) GetNextPageToken() string
func (*SearchPostsResponse) GetPosts ¶
func (x *SearchPostsResponse) GetPosts() []*Post
func (*SearchPostsResponse) ProtoMessage ¶
func (*SearchPostsResponse) ProtoMessage()
func (*SearchPostsResponse) ProtoReflect ¶
func (x *SearchPostsResponse) ProtoReflect() protoreflect.Message
func (*SearchPostsResponse) Reset ¶
func (x *SearchPostsResponse) Reset()
func (*SearchPostsResponse) String ¶
func (x *SearchPostsResponse) String() string
type SearchUsersRequest ¶
type SearchUsersRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The maximum number of items to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*SearchUsersRequest) Descriptor
deprecated
func (*SearchUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchUsersRequest.ProtoReflect.Descriptor instead.
func (*SearchUsersRequest) GetName ¶
func (x *SearchUsersRequest) GetName() string
func (*SearchUsersRequest) GetPageSize ¶
func (x *SearchUsersRequest) GetPageSize() int32
func (*SearchUsersRequest) GetPageToken ¶
func (x *SearchUsersRequest) GetPageToken() string
func (*SearchUsersRequest) ProtoMessage ¶
func (*SearchUsersRequest) ProtoMessage()
func (*SearchUsersRequest) ProtoReflect ¶
func (x *SearchUsersRequest) ProtoReflect() protoreflect.Message
func (*SearchUsersRequest) Reset ¶
func (x *SearchUsersRequest) Reset()
func (*SearchUsersRequest) String ¶
func (x *SearchUsersRequest) String() string
type SearchUsersResponse ¶
type SearchUsersResponse struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*SearchUsersResponse) Descriptor
deprecated
func (*SearchUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchUsersResponse.ProtoReflect.Descriptor instead.
func (*SearchUsersResponse) GetNextPageToken ¶
func (x *SearchUsersResponse) GetNextPageToken() string
func (*SearchUsersResponse) GetUsers ¶
func (x *SearchUsersResponse) GetUsers() []*User
func (*SearchUsersResponse) ProtoMessage ¶
func (*SearchUsersResponse) ProtoMessage()
func (*SearchUsersResponse) ProtoReflect ¶
func (x *SearchUsersResponse) ProtoReflect() protoreflect.Message
func (*SearchUsersResponse) Reset ¶
func (x *SearchUsersResponse) Reset()
func (*SearchUsersResponse) String ¶
func (x *SearchUsersResponse) String() string
type SearchVotesRequest ¶
type SearchVotesRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The maximum number of items to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*SearchVotesRequest) Descriptor
deprecated
func (*SearchVotesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchVotesRequest.ProtoReflect.Descriptor instead.
func (*SearchVotesRequest) GetName ¶
func (x *SearchVotesRequest) GetName() string
func (*SearchVotesRequest) GetPageSize ¶
func (x *SearchVotesRequest) GetPageSize() int32
func (*SearchVotesRequest) GetPageToken ¶
func (x *SearchVotesRequest) GetPageToken() string
func (*SearchVotesRequest) ProtoMessage ¶
func (*SearchVotesRequest) ProtoMessage()
func (*SearchVotesRequest) ProtoReflect ¶
func (x *SearchVotesRequest) ProtoReflect() protoreflect.Message
func (*SearchVotesRequest) Reset ¶
func (x *SearchVotesRequest) Reset()
func (*SearchVotesRequest) String ¶
func (x *SearchVotesRequest) String() string
type SearchVotesResponse ¶
type SearchVotesResponse struct { Votes []*Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*SearchVotesResponse) Descriptor
deprecated
func (*SearchVotesResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchVotesResponse.ProtoReflect.Descriptor instead.
func (*SearchVotesResponse) GetNextPageToken ¶
func (x *SearchVotesResponse) GetNextPageToken() string
func (*SearchVotesResponse) GetVotes ¶
func (x *SearchVotesResponse) GetVotes() []*Vote
func (*SearchVotesResponse) ProtoMessage ¶
func (*SearchVotesResponse) ProtoMessage()
func (*SearchVotesResponse) ProtoReflect ¶
func (x *SearchVotesResponse) ProtoReflect() protoreflect.Message
func (*SearchVotesResponse) Reset ¶
func (x *SearchVotesResponse) Reset()
func (*SearchVotesResponse) String ¶
func (x *SearchVotesResponse) String() string
type UndeleteUserRequest ¶
type UndeleteUserRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UndeleteUserRequest) Descriptor
deprecated
func (*UndeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UndeleteUserRequest.ProtoReflect.Descriptor instead.
func (*UndeleteUserRequest) GetName ¶
func (x *UndeleteUserRequest) GetName() string
func (*UndeleteUserRequest) ProtoMessage ¶
func (*UndeleteUserRequest) ProtoMessage()
func (*UndeleteUserRequest) ProtoReflect ¶
func (x *UndeleteUserRequest) ProtoReflect() protoreflect.Message
func (*UndeleteUserRequest) Reset ¶
func (x *UndeleteUserRequest) Reset()
func (*UndeleteUserRequest) String ¶
func (x *UndeleteUserRequest) String() string
type UnimplementedIpPostsAPIServer ¶
type UnimplementedIpPostsAPIServer struct { }
UnimplementedIpPostsAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedIpPostsAPIServer) CreateIpPost ¶
func (UnimplementedIpPostsAPIServer) CreateIpPost(context.Context, *CreateIpPostRequest) (*IpPost, error)
func (UnimplementedIpPostsAPIServer) DeleteIpPost ¶
func (UnimplementedIpPostsAPIServer) DeleteIpPost(context.Context, *DeleteIpPostRequest) (*empty.Empty, error)
func (UnimplementedIpPostsAPIServer) GetIpPost ¶
func (UnimplementedIpPostsAPIServer) GetIpPost(context.Context, *GetIpPostRequest) (*IpPost, error)
func (UnimplementedIpPostsAPIServer) ListIpPosts ¶
func (UnimplementedIpPostsAPIServer) ListIpPosts(context.Context, *ListIpPostsRequest) (*ListIpPostsResponse, error)
func (UnimplementedIpPostsAPIServer) UpdateIpPost ¶
func (UnimplementedIpPostsAPIServer) UpdateIpPost(context.Context, *UpdateIpPostRequest) (*IpPost, error)
type UnimplementedIpVotesAPIServer ¶
type UnimplementedIpVotesAPIServer struct { }
UnimplementedIpVotesAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedIpVotesAPIServer) CreateIpVote ¶
func (UnimplementedIpVotesAPIServer) CreateIpVote(context.Context, *CreateIpVoteRequest) (*IpVote, error)
func (UnimplementedIpVotesAPIServer) DeleteIpVote ¶
func (UnimplementedIpVotesAPIServer) DeleteIpVote(context.Context, *DeleteIpVoteRequest) (*empty.Empty, error)
func (UnimplementedIpVotesAPIServer) GetIpVote ¶
func (UnimplementedIpVotesAPIServer) GetIpVote(context.Context, *GetIpVoteRequest) (*IpVote, error)
func (UnimplementedIpVotesAPIServer) ListIpVotes ¶
func (UnimplementedIpVotesAPIServer) ListIpVotes(context.Context, *ListIpVotesRequest) (*ListIpVotesResponse, error)
func (UnimplementedIpVotesAPIServer) UpdateIpVote ¶
func (UnimplementedIpVotesAPIServer) UpdateIpVote(context.Context, *UpdateIpVoteRequest) (*IpVote, error)
type UnimplementedPostVotesAPIServer ¶
type UnimplementedPostVotesAPIServer struct { }
UnimplementedPostVotesAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedPostVotesAPIServer) CreatePostVote ¶
func (UnimplementedPostVotesAPIServer) CreatePostVote(context.Context, *CreatePostVoteRequest) (*PostVote, error)
func (UnimplementedPostVotesAPIServer) DeletePostVote ¶
func (UnimplementedPostVotesAPIServer) DeletePostVote(context.Context, *DeletePostVoteRequest) (*empty.Empty, error)
func (UnimplementedPostVotesAPIServer) GetByPidVid ¶
func (UnimplementedPostVotesAPIServer) GetByPidVid(context.Context, *GetByPidVidRequest) (*PostVote, error)
func (UnimplementedPostVotesAPIServer) GetPostVote ¶
func (UnimplementedPostVotesAPIServer) GetPostVote(context.Context, *GetPostVoteRequest) (*PostVote, error)
func (UnimplementedPostVotesAPIServer) ListPostVotes ¶
func (UnimplementedPostVotesAPIServer) ListPostVotes(context.Context, *ListPostVotesRequest) (*ListPostVotesResponse, error)
func (UnimplementedPostVotesAPIServer) ListVidsByPid ¶
func (UnimplementedPostVotesAPIServer) ListVidsByPid(context.Context, *ListVidsByPidRequest) (*ListVidsByPidResponse, error)
func (UnimplementedPostVotesAPIServer) UpdatePostVote ¶
func (UnimplementedPostVotesAPIServer) UpdatePostVote(context.Context, *UpdatePostVoteRequest) (*PostVote, error)
type UnimplementedPostsAPIServer ¶
type UnimplementedPostsAPIServer struct { }
UnimplementedPostsAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedPostsAPIServer) CreatePost ¶
func (UnimplementedPostsAPIServer) CreatePost(context.Context, *CreatePostRequest) (*Post, error)
func (UnimplementedPostsAPIServer) DeletePost ¶
func (UnimplementedPostsAPIServer) DeletePost(context.Context, *DeletePostRequest) (*empty.Empty, error)
func (UnimplementedPostsAPIServer) GetPost ¶
func (UnimplementedPostsAPIServer) GetPost(context.Context, *GetPostRequest) (*Post, error)
func (UnimplementedPostsAPIServer) ListPosts ¶
func (UnimplementedPostsAPIServer) ListPosts(context.Context, *ListPostsRequest) (*ListPostsResponse, error)
func (UnimplementedPostsAPIServer) SearchPosts ¶
func (UnimplementedPostsAPIServer) SearchPosts(context.Context, *SearchPostsRequest) (*SearchPostsResponse, error)
func (UnimplementedPostsAPIServer) UpdatePost ¶
func (UnimplementedPostsAPIServer) UpdatePost(context.Context, *UpdatePostRequest) (*Post, error)
type UnimplementedUsersAPIServer ¶
type UnimplementedUsersAPIServer struct { }
UnimplementedUsersAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedUsersAPIServer) CreateUser ¶
func (UnimplementedUsersAPIServer) CreateUser(context.Context, *CreateUserRequest) (*User, error)
func (UnimplementedUsersAPIServer) DeleteUser ¶
func (UnimplementedUsersAPIServer) DeleteUser(context.Context, *DeleteUserRequest) (*empty.Empty, error)
func (UnimplementedUsersAPIServer) GetUser ¶
func (UnimplementedUsersAPIServer) GetUser(context.Context, *GetUserRequest) (*User, error)
func (UnimplementedUsersAPIServer) ListUsers ¶
func (UnimplementedUsersAPIServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
func (UnimplementedUsersAPIServer) PermanentlyDeleteUser ¶
func (UnimplementedUsersAPIServer) PermanentlyDeleteUser(context.Context, *PermanentlyDeleteUserRequest) (*empty.Empty, error)
func (UnimplementedUsersAPIServer) SearchUsers ¶
func (UnimplementedUsersAPIServer) SearchUsers(context.Context, *SearchUsersRequest) (*SearchUsersResponse, error)
func (UnimplementedUsersAPIServer) UndeleteUser ¶
func (UnimplementedUsersAPIServer) UndeleteUser(context.Context, *UndeleteUserRequest) (*empty.Empty, error)
func (UnimplementedUsersAPIServer) UpdateUser ¶
func (UnimplementedUsersAPIServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
type UnimplementedVotesAPIServer ¶
type UnimplementedVotesAPIServer struct { }
UnimplementedVotesAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedVotesAPIServer) CreateVote ¶
func (UnimplementedVotesAPIServer) CreateVote(context.Context, *CreateVoteRequest) (*Vote, error)
func (UnimplementedVotesAPIServer) DeleteVote ¶
func (UnimplementedVotesAPIServer) DeleteVote(context.Context, *DeleteVoteRequest) (*empty.Empty, error)
func (UnimplementedVotesAPIServer) GetVote ¶
func (UnimplementedVotesAPIServer) GetVote(context.Context, *GetVoteRequest) (*Vote, error)
func (UnimplementedVotesAPIServer) ListVotes ¶
func (UnimplementedVotesAPIServer) ListVotes(context.Context, *ListVotesRequest) (*ListVotesResponse, error)
func (UnimplementedVotesAPIServer) SearchVotes ¶
func (UnimplementedVotesAPIServer) SearchVotes(context.Context, *SearchVotesRequest) (*SearchVotesResponse, error)
func (UnimplementedVotesAPIServer) UpdateVote ¶
func (UnimplementedVotesAPIServer) UpdateVote(context.Context, *UpdateVoteRequest) (*Vote, error)
type UnsafeIpPostsAPIServer ¶
type UnsafeIpPostsAPIServer interface {
// contains filtered or unexported methods
}
UnsafeIpPostsAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IpPostsAPIServer will result in compilation errors.
type UnsafeIpVotesAPIServer ¶
type UnsafeIpVotesAPIServer interface {
// contains filtered or unexported methods
}
UnsafeIpVotesAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IpVotesAPIServer will result in compilation errors.
type UnsafePostVotesAPIServer ¶
type UnsafePostVotesAPIServer interface {
// contains filtered or unexported methods
}
UnsafePostVotesAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PostVotesAPIServer will result in compilation errors.
type UnsafePostsAPIServer ¶
type UnsafePostsAPIServer interface {
// contains filtered or unexported methods
}
UnsafePostsAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PostsAPIServer will result in compilation errors.
type UnsafeUsersAPIServer ¶
type UnsafeUsersAPIServer interface {
// contains filtered or unexported methods
}
UnsafeUsersAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UsersAPIServer will result in compilation errors.
type UnsafeVotesAPIServer ¶
type UnsafeVotesAPIServer interface {
// contains filtered or unexported methods
}
UnsafeVotesAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VotesAPIServer will result in compilation errors.
type UpdateIpPostRequest ¶
type UpdateIpPostRequest struct { IpPost *IpPost `protobuf:"bytes,1,opt,name=ip_post,json=ipPost,proto3" json:"ip_post,omitempty"` // The update mask applies to the resource. For the `FieldMask` definition, // see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateIpPostRequest) Descriptor
deprecated
func (*UpdateIpPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateIpPostRequest.ProtoReflect.Descriptor instead.
func (*UpdateIpPostRequest) GetIpPost ¶
func (x *UpdateIpPostRequest) GetIpPost() *IpPost
func (*UpdateIpPostRequest) GetUpdateMask ¶
func (x *UpdateIpPostRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateIpPostRequest) ProtoMessage ¶
func (*UpdateIpPostRequest) ProtoMessage()
func (*UpdateIpPostRequest) ProtoReflect ¶
func (x *UpdateIpPostRequest) ProtoReflect() protoreflect.Message
func (*UpdateIpPostRequest) Reset ¶
func (x *UpdateIpPostRequest) Reset()
func (*UpdateIpPostRequest) String ¶
func (x *UpdateIpPostRequest) String() string
type UpdateIpVoteRequest ¶
type UpdateIpVoteRequest struct { IpVote *IpVote `protobuf:"bytes,1,opt,name=ip_vote,json=ipVote,proto3" json:"ip_vote,omitempty"` // The update mask applies to the resource. For the `FieldMask` definition, // see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateIpVoteRequest) Descriptor
deprecated
func (*UpdateIpVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateIpVoteRequest.ProtoReflect.Descriptor instead.
func (*UpdateIpVoteRequest) GetIpVote ¶
func (x *UpdateIpVoteRequest) GetIpVote() *IpVote
func (*UpdateIpVoteRequest) GetUpdateMask ¶
func (x *UpdateIpVoteRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateIpVoteRequest) ProtoMessage ¶
func (*UpdateIpVoteRequest) ProtoMessage()
func (*UpdateIpVoteRequest) ProtoReflect ¶
func (x *UpdateIpVoteRequest) ProtoReflect() protoreflect.Message
func (*UpdateIpVoteRequest) Reset ¶
func (x *UpdateIpVoteRequest) Reset()
func (*UpdateIpVoteRequest) String ¶
func (x *UpdateIpVoteRequest) String() string
type UpdatePostRequest ¶
type UpdatePostRequest struct { Post *Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"` // The update mask applies to the resource. For the `FieldMask` definition, // see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdatePostRequest) Descriptor
deprecated
func (*UpdatePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePostRequest.ProtoReflect.Descriptor instead.
func (*UpdatePostRequest) GetPost ¶
func (x *UpdatePostRequest) GetPost() *Post
func (*UpdatePostRequest) GetUpdateMask ¶
func (x *UpdatePostRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdatePostRequest) ProtoMessage ¶
func (*UpdatePostRequest) ProtoMessage()
func (*UpdatePostRequest) ProtoReflect ¶
func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message
func (*UpdatePostRequest) Reset ¶
func (x *UpdatePostRequest) Reset()
func (*UpdatePostRequest) String ¶
func (x *UpdatePostRequest) String() string
type UpdatePostVoteRequest ¶
type UpdatePostVoteRequest struct { PostVote *PostVote `protobuf:"bytes,1,opt,name=post_vote,json=postVote,proto3" json:"post_vote,omitempty"` // The update mask applies to the resource. For the `FieldMask` definition, // see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdatePostVoteRequest) Descriptor
deprecated
func (*UpdatePostVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePostVoteRequest.ProtoReflect.Descriptor instead.
func (*UpdatePostVoteRequest) GetPostVote ¶
func (x *UpdatePostVoteRequest) GetPostVote() *PostVote
func (*UpdatePostVoteRequest) GetUpdateMask ¶
func (x *UpdatePostVoteRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdatePostVoteRequest) ProtoMessage ¶
func (*UpdatePostVoteRequest) ProtoMessage()
func (*UpdatePostVoteRequest) ProtoReflect ¶
func (x *UpdatePostVoteRequest) ProtoReflect() protoreflect.Message
func (*UpdatePostVoteRequest) Reset ¶
func (x *UpdatePostVoteRequest) Reset()
func (*UpdatePostVoteRequest) String ¶
func (x *UpdatePostVoteRequest) String() string
type UpdateUserRequest ¶
type UpdateUserRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // The update mask applies to the resource. For the `FieldMask` definition, // see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetUpdateMask ¶
func (x *UpdateUserRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateUserRequest) GetUser ¶
func (x *UpdateUserRequest) GetUser() *User
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type UpdateVoteRequest ¶
type UpdateVoteRequest struct { Vote *Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"` // The update mask applies to the resource. For the `FieldMask` definition, // see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateVoteRequest) Descriptor
deprecated
func (*UpdateVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateVoteRequest.ProtoReflect.Descriptor instead.
func (*UpdateVoteRequest) GetUpdateMask ¶
func (x *UpdateVoteRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateVoteRequest) GetVote ¶
func (x *UpdateVoteRequest) GetVote() *Vote
func (*UpdateVoteRequest) ProtoMessage ¶
func (*UpdateVoteRequest) ProtoMessage()
func (*UpdateVoteRequest) ProtoReflect ¶
func (x *UpdateVoteRequest) ProtoReflect() protoreflect.Message
func (*UpdateVoteRequest) Reset ¶
func (x *UpdateVoteRequest) Reset()
func (*UpdateVoteRequest) String ¶
func (x *UpdateVoteRequest) String() string
type User ¶
type User struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` Realname string `protobuf:"bytes,5,opt,name=realname,proto3" json:"realname,omitempty"` Nickname string `protobuf:"bytes,6,opt,name=nickname,proto3" json:"nickname,omitempty"` AvatarUrl string `protobuf:"bytes,7,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` Phone string `protobuf:"bytes,8,opt,name=phone,proto3" json:"phone,omitempty"` UserIp string `protobuf:"bytes,9,opt,name=user_ip,json=userIp,proto3" json:"user_ip,omitempty"` State int32 `protobuf:"varint,10,opt,name=state,proto3" json:"state,omitempty"` Deleted int32 `protobuf:"varint,11,opt,name=deleted,proto3" json:"deleted,omitempty"` CreateTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` UpdateTime *timestamp.Timestamp `protobuf:"bytes,13,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAvatarUrl ¶
func (*User) GetCreateTime ¶
func (*User) GetDeleted ¶
func (*User) GetNickname ¶
func (*User) GetPassword ¶
func (*User) GetRealname ¶
func (*User) GetUpdateTime ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UsersAPIClient ¶
type UsersAPIClient interface { ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) SearchUsers(ctx context.Context, in *SearchUsersRequest, opts ...grpc.CallOption) (*SearchUsersResponse, error) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*empty.Empty, error) UndeleteUser(ctx context.Context, in *UndeleteUserRequest, opts ...grpc.CallOption) (*empty.Empty, error) PermanentlyDeleteUser(ctx context.Context, in *PermanentlyDeleteUserRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
UsersAPIClient is the client API for UsersAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUsersAPIClient ¶
func NewUsersAPIClient(cc grpc.ClientConnInterface) UsersAPIClient
type UsersAPIServer ¶
type UsersAPIServer interface { ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) GetUser(context.Context, *GetUserRequest) (*User, error) SearchUsers(context.Context, *SearchUsersRequest) (*SearchUsersResponse, error) CreateUser(context.Context, *CreateUserRequest) (*User, error) UpdateUser(context.Context, *UpdateUserRequest) (*User, error) DeleteUser(context.Context, *DeleteUserRequest) (*empty.Empty, error) UndeleteUser(context.Context, *UndeleteUserRequest) (*empty.Empty, error) PermanentlyDeleteUser(context.Context, *PermanentlyDeleteUserRequest) (*empty.Empty, error) // contains filtered or unexported methods }
UsersAPIServer is the server API for UsersAPI service. All implementations must embed UnimplementedUsersAPIServer for forward compatibility
type Vote ¶
type Vote struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` VoteId int32 `protobuf:"varint,2,opt,name=vote_id,json=voteId,proto3" json:"vote_id,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` IsRadio int32 `protobuf:"varint,4,opt,name=is_radio,json=isRadio,proto3" json:"is_radio,omitempty"` A string `protobuf:"bytes,5,opt,name=a,proto3" json:"a,omitempty"` B string `protobuf:"bytes,6,opt,name=b,proto3" json:"b,omitempty"` C string `protobuf:"bytes,7,opt,name=c,proto3" json:"c,omitempty"` D string `protobuf:"bytes,8,opt,name=d,proto3" json:"d,omitempty"` E string `protobuf:"bytes,9,opt,name=e,proto3" json:"e,omitempty"` F string `protobuf:"bytes,10,opt,name=f,proto3" json:"f,omitempty"` G string `protobuf:"bytes,11,opt,name=g,proto3" json:"g,omitempty"` H string `protobuf:"bytes,12,opt,name=h,proto3" json:"h,omitempty"` HasTxtField int32 `protobuf:"varint,13,opt,name=HasTxtField,proto3" json:"HasTxtField,omitempty"` CreateTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` UpdateTime *timestamp.Timestamp `protobuf:"bytes,15,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
func (*Vote) Descriptor
deprecated
func (*Vote) GetCreateTime ¶
func (*Vote) GetHasTxtField ¶
func (*Vote) GetIsRadio ¶
func (*Vote) GetUpdateTime ¶
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
func (*Vote) ProtoReflect ¶
func (x *Vote) ProtoReflect() protoreflect.Message
type VotesAPIClient ¶
type VotesAPIClient interface { ListVotes(ctx context.Context, in *ListVotesRequest, opts ...grpc.CallOption) (*ListVotesResponse, error) GetVote(ctx context.Context, in *GetVoteRequest, opts ...grpc.CallOption) (*Vote, error) SearchVotes(ctx context.Context, in *SearchVotesRequest, opts ...grpc.CallOption) (*SearchVotesResponse, error) CreateVote(ctx context.Context, in *CreateVoteRequest, opts ...grpc.CallOption) (*Vote, error) UpdateVote(ctx context.Context, in *UpdateVoteRequest, opts ...grpc.CallOption) (*Vote, error) DeleteVote(ctx context.Context, in *DeleteVoteRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
VotesAPIClient is the client API for VotesAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewVotesAPIClient ¶
func NewVotesAPIClient(cc grpc.ClientConnInterface) VotesAPIClient
type VotesAPIServer ¶
type VotesAPIServer interface { ListVotes(context.Context, *ListVotesRequest) (*ListVotesResponse, error) GetVote(context.Context, *GetVoteRequest) (*Vote, error) SearchVotes(context.Context, *SearchVotesRequest) (*SearchVotesResponse, error) CreateVote(context.Context, *CreateVoteRequest) (*Vote, error) UpdateVote(context.Context, *UpdateVoteRequest) (*Vote, error) DeleteVote(context.Context, *DeleteVoteRequest) (*empty.Empty, error) // contains filtered or unexported methods }
VotesAPIServer is the server API for VotesAPI service. All implementations must embed UnimplementedVotesAPIServer for forward compatibility
Source Files ¶
- voter-ip_posts.pb.go
- voter-ip_posts.pb.gw.go
- voter-ip_posts_grpc.pb.go
- voter-ip_votes.pb.go
- voter-ip_votes.pb.gw.go
- voter-ip_votes_grpc.pb.go
- voter-post_votes.pb.go
- voter-post_votes.pb.gw.go
- voter-post_votes_grpc.pb.go
- voter-posts.pb.go
- voter-posts.pb.gw.go
- voter-posts_grpc.pb.go
- voter-users.pb.go
- voter-users.pb.gw.go
- voter-users_grpc.pb.go
- voter-votes.pb.go
- voter-votes.pb.gw.go
- voter-votes_grpc.pb.go