v1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 19 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
var File_api_voter_v1_voter_ip_posts_proto protoreflect.FileDescriptor
View Source
var File_api_voter_v1_voter_ip_votes_proto protoreflect.FileDescriptor
View Source
var File_api_voter_v1_voter_post_votes_proto protoreflect.FileDescriptor
View Source
var File_api_voter_v1_voter_posts_proto protoreflect.FileDescriptor
View Source
var File_api_voter_v1_voter_users_proto protoreflect.FileDescriptor
View Source
var File_api_voter_v1_voter_votes_proto protoreflect.FileDescriptor
View Source
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)

View Source
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)

View Source
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)

View Source
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)

View Source
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)

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

Deprecated: Use IpPost.ProtoReflect.Descriptor instead.

func (*IpPost) GetIp

func (x *IpPost) GetIp() string

func (*IpPost) GetIpPostId

func (x *IpPost) GetIpPostId() int32

func (*IpPost) GetName

func (x *IpPost) GetName() string

func (*IpPost) GetPostId

func (x *IpPost) GetPostId() int32

func (*IpPost) ProtoMessage

func (*IpPost) ProtoMessage()

func (*IpPost) ProtoReflect

func (x *IpPost) ProtoReflect() protoreflect.Message

func (*IpPost) Reset

func (x *IpPost) Reset()

func (*IpPost) String

func (x *IpPost) String() string

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

Deprecated: Use IpPosts.ProtoReflect.Descriptor instead.

func (*IpPosts) GetIpPosts

func (x *IpPosts) GetIpPosts() []*IpPost

func (*IpPosts) ProtoMessage

func (*IpPosts) ProtoMessage()

func (*IpPosts) ProtoReflect

func (x *IpPosts) ProtoReflect() protoreflect.Message

func (*IpPosts) Reset

func (x *IpPosts) Reset()

func (*IpPosts) String

func (x *IpPosts) String() string

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

Deprecated: Use IpVote.ProtoReflect.Descriptor instead.

func (*IpVote) GetIp

func (x *IpVote) GetIp() string

func (*IpVote) GetIpVoteId

func (x *IpVote) GetIpVoteId() int32

func (*IpVote) GetName

func (x *IpVote) GetName() string

func (*IpVote) GetOpts

func (x *IpVote) GetOpts() string

func (*IpVote) GetPostId added in v0.3.0

func (x *IpVote) GetPostId() int32

func (*IpVote) GetTxtField

func (x *IpVote) GetTxtField() string

func (*IpVote) GetVoteId

func (x *IpVote) GetVoteId() int32

func (*IpVote) ProtoMessage

func (*IpVote) ProtoMessage()

func (*IpVote) ProtoReflect

func (x *IpVote) ProtoReflect() protoreflect.Message

func (*IpVote) Reset

func (x *IpVote) Reset()

func (*IpVote) String

func (x *IpVote) String() string

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

Deprecated: Use IpVotes.ProtoReflect.Descriptor instead.

func (*IpVotes) GetIpVotes

func (x *IpVotes) GetIpVotes() []*IpVote

func (*IpVotes) ProtoMessage

func (*IpVotes) ProtoMessage()

func (*IpVotes) ProtoReflect

func (x *IpVotes) ProtoReflect() protoreflect.Message

func (*IpVotes) Reset

func (x *IpVotes) Reset()

func (*IpVotes) String

func (x *IpVotes) String() string

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 (*PermanentlyDeleteUserRequest) Reset

func (x *PermanentlyDeleteUserRequest) Reset()

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

Deprecated: Use Post.ProtoReflect.Descriptor instead.

func (*Post) GetCreateTime

func (x *Post) GetCreateTime() *timestamp.Timestamp

func (*Post) GetDetail

func (x *Post) GetDetail() string

func (*Post) GetIsClosed

func (x *Post) GetIsClosed() int32

func (*Post) GetName

func (x *Post) GetName() string

func (*Post) GetPostId

func (x *Post) GetPostId() int32

func (*Post) GetTitle

func (x *Post) GetTitle() string

func (*Post) GetUpdateTime

func (x *Post) GetUpdateTime() *timestamp.Timestamp

func (*Post) ProtoMessage

func (*Post) ProtoMessage()

func (*Post) ProtoReflect

func (x *Post) ProtoReflect() protoreflect.Message

func (*Post) Reset

func (x *Post) Reset()

func (*Post) String

func (x *Post) String() string

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

Deprecated: Use PostVote.ProtoReflect.Descriptor instead.

func (*PostVote) GetName

func (x *PostVote) GetName() string

func (*PostVote) GetPostId

func (x *PostVote) GetPostId() int32

func (*PostVote) GetPostVoteId

func (x *PostVote) GetPostVoteId() int32

func (*PostVote) GetVoteId

func (x *PostVote) GetVoteId() int32

func (*PostVote) ProtoMessage

func (*PostVote) ProtoMessage()

func (*PostVote) ProtoReflect

func (x *PostVote) ProtoReflect() protoreflect.Message

func (*PostVote) Reset

func (x *PostVote) Reset()

func (*PostVote) String

func (x *PostVote) String() string

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

Deprecated: Use PostVotes.ProtoReflect.Descriptor instead.

func (*PostVotes) GetPostVotes

func (x *PostVotes) GetPostVotes() []*PostVote

func (*PostVotes) ProtoMessage

func (*PostVotes) ProtoMessage()

func (*PostVotes) ProtoReflect

func (x *PostVotes) ProtoReflect() protoreflect.Message

func (*PostVotes) Reset

func (x *PostVotes) Reset()

func (*PostVotes) String

func (x *PostVotes) String() string

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.

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

func (UnimplementedIpPostsAPIServer) GetIpPost

func (UnimplementedIpPostsAPIServer) ListIpPosts

func (UnimplementedIpPostsAPIServer) UpdateIpPost

type UnimplementedIpVotesAPIServer

type UnimplementedIpVotesAPIServer struct {
}

UnimplementedIpVotesAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedIpVotesAPIServer) CreateIpVote

func (UnimplementedIpVotesAPIServer) DeleteIpVote

func (UnimplementedIpVotesAPIServer) GetIpVote

func (UnimplementedIpVotesAPIServer) ListIpVotes

func (UnimplementedIpVotesAPIServer) UpdateIpVote

type UnimplementedPostVotesAPIServer

type UnimplementedPostVotesAPIServer struct {
}

UnimplementedPostVotesAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedPostVotesAPIServer) CreatePostVote

func (UnimplementedPostVotesAPIServer) DeletePostVote

func (UnimplementedPostVotesAPIServer) GetByPidVid

func (UnimplementedPostVotesAPIServer) GetPostVote

func (UnimplementedPostVotesAPIServer) ListPostVotes

func (UnimplementedPostVotesAPIServer) ListVidsByPid

func (UnimplementedPostVotesAPIServer) UpdatePostVote

type UnimplementedPostsAPIServer

type UnimplementedPostsAPIServer struct {
}

UnimplementedPostsAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedPostsAPIServer) CreatePost

func (UnimplementedPostsAPIServer) DeletePost

func (UnimplementedPostsAPIServer) GetPost

func (UnimplementedPostsAPIServer) ListPosts

func (UnimplementedPostsAPIServer) SearchPosts

func (UnimplementedPostsAPIServer) UpdatePost

type UnimplementedUsersAPIServer

type UnimplementedUsersAPIServer struct {
}

UnimplementedUsersAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedUsersAPIServer) CreateUser

func (UnimplementedUsersAPIServer) DeleteUser

func (UnimplementedUsersAPIServer) GetUser

func (UnimplementedUsersAPIServer) ListUsers

func (UnimplementedUsersAPIServer) PermanentlyDeleteUser

func (UnimplementedUsersAPIServer) SearchUsers

func (UnimplementedUsersAPIServer) UndeleteUser

func (UnimplementedUsersAPIServer) UpdateUser

type UnimplementedVotesAPIServer

type UnimplementedVotesAPIServer struct {
}

UnimplementedVotesAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedVotesAPIServer) CreateVote

func (UnimplementedVotesAPIServer) DeleteVote

func (UnimplementedVotesAPIServer) GetVote

func (UnimplementedVotesAPIServer) ListVotes

func (UnimplementedVotesAPIServer) SearchVotes

func (UnimplementedVotesAPIServer) UpdateVote

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatarUrl

func (x *User) GetAvatarUrl() string

func (*User) GetCreateTime

func (x *User) GetCreateTime() *timestamp.Timestamp

func (*User) GetDeleted

func (x *User) GetDeleted() int32

func (*User) GetName

func (x *User) GetName() string

func (*User) GetNickname

func (x *User) GetNickname() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetPhone

func (x *User) GetPhone() string

func (*User) GetRealname

func (x *User) GetRealname() string

func (*User) GetState

func (x *User) GetState() int32

func (*User) GetUpdateTime

func (x *User) GetUpdateTime() *timestamp.Timestamp

func (*User) GetUserId

func (x *User) GetUserId() int32

func (*User) GetUserIp

func (x *User) GetUserIp() string

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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

Deprecated: Use Vote.ProtoReflect.Descriptor instead.

func (*Vote) GetA

func (x *Vote) GetA() string

func (*Vote) GetB

func (x *Vote) GetB() string

func (*Vote) GetC

func (x *Vote) GetC() string

func (*Vote) GetCreateTime

func (x *Vote) GetCreateTime() *timestamp.Timestamp

func (*Vote) GetD

func (x *Vote) GetD() string

func (*Vote) GetE

func (x *Vote) GetE() string

func (*Vote) GetF

func (x *Vote) GetF() string

func (*Vote) GetG

func (x *Vote) GetG() string

func (*Vote) GetH

func (x *Vote) GetH() string

func (*Vote) GetHasTxtField

func (x *Vote) GetHasTxtField() int32

func (*Vote) GetIsRadio

func (x *Vote) GetIsRadio() int32

func (*Vote) GetName

func (x *Vote) GetName() string

func (*Vote) GetTitle

func (x *Vote) GetTitle() string

func (*Vote) GetUpdateTime

func (x *Vote) GetUpdateTime() *timestamp.Timestamp

func (*Vote) GetVoteId

func (x *Vote) GetVoteId() int32

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) ProtoReflect

func (x *Vote) ProtoReflect() protoreflect.Message

func (*Vote) Reset

func (x *Vote) Reset()

func (*Vote) String

func (x *Vote) String() string

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

Jump to

Keyboard shortcuts

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