pb

package
v0.0.0-...-91b8838 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserRole_name = map[int32]string{
		0: "DEFAULT",
		1: "ADMIN",
	}
	UserRole_value = map[string]int32{
		"DEFAULT": 0,
		"ADMIN":   1,
	}
)

Enum value maps for UserRole.

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SignIn",
			Handler:    _AuthService_SignIn_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _AuthService_GetUser_Handler,
		},
		{
			MethodName: "GetUserByUid",
			Handler:    _AuthService_GetUserByUid_Handler,
		},
		{
			MethodName: "GetUserRole",
			Handler:    _AuthService_GetUserRole_Handler,
		},
		{
			MethodName: "AddUserToRole",
			Handler:    _AuthService_AddUserToRole_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _AuthService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _AuthService_DeleteUser_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ListUsers",
			Handler:       _AuthService_ListUsers_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "auth.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService 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 File_forum_proto protoreflect.FileDescriptor
View Source
var File_place_proto protoreflect.FileDescriptor
View Source
var ForumService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.ForumService",
	HandlerType: (*ForumServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateForum",
			Handler:    _ForumService_CreateForum_Handler,
		},
		{
			MethodName: "CreateThread",
			Handler:    _ForumService_CreateThread_Handler,
		},
		{
			MethodName: "CreatePost",
			Handler:    _ForumService_CreatePost_Handler,
		},
		{
			MethodName: "GetForum",
			Handler:    _ForumService_GetForum_Handler,
		},
		{
			MethodName: "GetThread",
			Handler:    _ForumService_GetThread_Handler,
		},
		{
			MethodName: "GetPost",
			Handler:    _ForumService_GetPost_Handler,
		},
		{
			MethodName: "UpdateForum",
			Handler:    _ForumService_UpdateForum_Handler,
		},
		{
			MethodName: "UpdateThread",
			Handler:    _ForumService_UpdateThread_Handler,
		},
		{
			MethodName: "UpdatePost",
			Handler:    _ForumService_UpdatePost_Handler,
		},
		{
			MethodName: "DeleteForum",
			Handler:    _ForumService_DeleteForum_Handler,
		},
		{
			MethodName: "DeleteThread",
			Handler:    _ForumService_DeleteThread_Handler,
		},
		{
			MethodName: "DeletePost",
			Handler:    _ForumService_DeletePost_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetForums",
			Handler:       _ForumService_GetForums_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetThreads",
			Handler:       _ForumService_GetThreads_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetPosts",
			Handler:       _ForumService_GetPosts_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SearchForum",
			Handler:       _ForumService_SearchForum_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "forum.proto",
}

ForumService_ServiceDesc is the grpc.ServiceDesc for ForumService 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 PlaceService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.PlaceService",
	HandlerType: (*PlaceServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePlace",
			Handler:    _PlaceService_CreatePlace_Handler,
		},
		{
			MethodName: "GetPlace",
			Handler:    _PlaceService_GetPlace_Handler,
		},
		{
			MethodName: "UpdatePlace",
			Handler:    _PlaceService_UpdatePlace_Handler,
		},
		{
			MethodName: "DeletePlace",
			Handler:    _PlaceService_DeletePlace_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetPlaces",
			Handler:       _PlaceService_GetPlaces_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "place.proto",
}

PlaceService_ServiceDesc is the grpc.ServiceDesc for PlaceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

func RegisterForumServiceServer

func RegisterForumServiceServer(s grpc.ServiceRegistrar, srv ForumServiceServer)

func RegisterPlaceServiceServer

func RegisterPlaceServiceServer(s grpc.ServiceRegistrar, srv PlaceServiceServer)

Types

type AddUserToRoleRequest

type AddUserToRoleRequest struct {
	UserId uint64   `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Role   UserRole `protobuf:"varint,2,opt,name=role,proto3,enum=pb.UserRole" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*AddUserToRoleRequest) Descriptor deprecated

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

Deprecated: Use AddUserToRoleRequest.ProtoReflect.Descriptor instead.

func (*AddUserToRoleRequest) GetRole

func (x *AddUserToRoleRequest) GetRole() UserRole

func (*AddUserToRoleRequest) GetUserId

func (x *AddUserToRoleRequest) GetUserId() uint64

func (*AddUserToRoleRequest) ProtoMessage

func (*AddUserToRoleRequest) ProtoMessage()

func (*AddUserToRoleRequest) ProtoReflect

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

func (*AddUserToRoleRequest) Reset

func (x *AddUserToRoleRequest) Reset()

func (*AddUserToRoleRequest) String

func (x *AddUserToRoleRequest) String() string

type AuthServiceClient

type AuthServiceClient interface {
	SignIn(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	GetUserByUid(ctx context.Context, in *GetUserByUidRequest, opts ...grpc.CallOption) (*User, error)
	GetUserRole(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserRoleResponse, error)
	AddUserToRole(ctx context.Context, in *AddUserToRoleRequest, opts ...grpc.CallOption) (*User, error)
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (AuthService_ListUsersClient, error)
	UpdateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error)
	DeleteUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
}

AuthServiceClient is the client API for AuthService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AuthServiceServer

type AuthServiceServer interface {
	SignIn(context.Context, *User) (*User, error)
	GetUser(context.Context, *GetUserRequest) (*User, error)
	GetUserByUid(context.Context, *GetUserByUidRequest) (*User, error)
	GetUserRole(context.Context, *GetUserRequest) (*GetUserRoleResponse, error)
	AddUserToRole(context.Context, *AddUserToRoleRequest) (*User, error)
	ListUsers(*ListUsersRequest, AuthService_ListUsersServer) error
	UpdateUser(context.Context, *User) (*User, error)
	DeleteUser(context.Context, *GetUserRequest) (*DeleteUserResponse, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility

type AuthService_ListUsersClient

type AuthService_ListUsersClient interface {
	Recv() (*User, error)
	grpc.ClientStream
}

type AuthService_ListUsersServer

type AuthService_ListUsersServer interface {
	Send(*User) error
	grpc.ServerStream
}

type DeleteUserResponse

type DeleteUserResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserResponse) Descriptor deprecated

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

Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserResponse) GetId

func (x *DeleteUserResponse) GetId() uint64

func (*DeleteUserResponse) ProtoMessage

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) ProtoReflect

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

func (*DeleteUserResponse) Reset

func (x *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String

func (x *DeleteUserResponse) String() string

type Forum

type Forum struct {
	Id          uint64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId      uint64    `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Title       string    `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Description string    `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Threads     []*Thread `protobuf:"bytes,5,rep,name=threads,proto3" json:"threads,omitempty"`
	CreatedAt   int64     `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   int64     `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Forum) Descriptor deprecated

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

Deprecated: Use Forum.ProtoReflect.Descriptor instead.

func (*Forum) GetCreatedAt

func (x *Forum) GetCreatedAt() int64

func (*Forum) GetDescription

func (x *Forum) GetDescription() string

func (*Forum) GetId

func (x *Forum) GetId() uint64

func (*Forum) GetThreads

func (x *Forum) GetThreads() []*Thread

func (*Forum) GetTitle

func (x *Forum) GetTitle() string

func (*Forum) GetUpdatedAt

func (x *Forum) GetUpdatedAt() int64

func (*Forum) GetUserId

func (x *Forum) GetUserId() uint64

func (*Forum) ProtoMessage

func (*Forum) ProtoMessage()

func (*Forum) ProtoReflect

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

func (*Forum) Reset

func (x *Forum) Reset()

func (*Forum) String

func (x *Forum) String() string

type ForumIdRequest

type ForumIdRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ForumIdRequest) Descriptor deprecated

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

Deprecated: Use ForumIdRequest.ProtoReflect.Descriptor instead.

func (*ForumIdRequest) GetId

func (x *ForumIdRequest) GetId() uint64

func (*ForumIdRequest) ProtoMessage

func (*ForumIdRequest) ProtoMessage()

func (*ForumIdRequest) ProtoReflect

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

func (*ForumIdRequest) Reset

func (x *ForumIdRequest) Reset()

func (*ForumIdRequest) String

func (x *ForumIdRequest) String() string

type ForumIdResponse

type ForumIdResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ForumIdResponse) Descriptor deprecated

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

Deprecated: Use ForumIdResponse.ProtoReflect.Descriptor instead.

func (*ForumIdResponse) GetId

func (x *ForumIdResponse) GetId() uint64

func (*ForumIdResponse) ProtoMessage

func (*ForumIdResponse) ProtoMessage()

func (*ForumIdResponse) ProtoReflect

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

func (*ForumIdResponse) Reset

func (x *ForumIdResponse) Reset()

func (*ForumIdResponse) String

func (x *ForumIdResponse) String() string

type ForumSearchRequest

type ForumSearchRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*ForumSearchRequest) Descriptor deprecated

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

Deprecated: Use ForumSearchRequest.ProtoReflect.Descriptor instead.

func (*ForumSearchRequest) GetKey

func (x *ForumSearchRequest) GetKey() string

func (*ForumSearchRequest) ProtoMessage

func (*ForumSearchRequest) ProtoMessage()

func (*ForumSearchRequest) ProtoReflect

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

func (*ForumSearchRequest) Reset

func (x *ForumSearchRequest) Reset()

func (*ForumSearchRequest) String

func (x *ForumSearchRequest) String() string

type ForumServiceClient

type ForumServiceClient interface {
	CreateForum(ctx context.Context, in *Forum, opts ...grpc.CallOption) (*ForumIdResponse, error)
	CreateThread(ctx context.Context, in *Thread, opts ...grpc.CallOption) (*ForumIdResponse, error)
	CreatePost(ctx context.Context, in *Post, opts ...grpc.CallOption) (*ForumIdResponse, error)
	GetForum(ctx context.Context, in *ForumIdRequest, opts ...grpc.CallOption) (*Forum, error)
	GetForums(ctx context.Context, in *GetForumsRequest, opts ...grpc.CallOption) (ForumService_GetForumsClient, error)
	GetThread(ctx context.Context, in *ForumIdRequest, opts ...grpc.CallOption) (*Thread, error)
	GetThreads(ctx context.Context, in *ForumIdRequest, opts ...grpc.CallOption) (ForumService_GetThreadsClient, error)
	GetPost(ctx context.Context, in *ForumIdRequest, opts ...grpc.CallOption) (*Post, error)
	GetPosts(ctx context.Context, in *ForumIdRequest, opts ...grpc.CallOption) (ForumService_GetPostsClient, error)
	UpdateForum(ctx context.Context, in *Forum, opts ...grpc.CallOption) (*Forum, error)
	UpdateThread(ctx context.Context, in *Thread, opts ...grpc.CallOption) (*Thread, error)
	UpdatePost(ctx context.Context, in *Post, opts ...grpc.CallOption) (*Post, error)
	DeleteForum(ctx context.Context, in *ForumIdRequest, opts ...grpc.CallOption) (*ForumIdResponse, error)
	DeleteThread(ctx context.Context, in *ForumIdRequest, opts ...grpc.CallOption) (*ForumIdResponse, error)
	DeletePost(ctx context.Context, in *ForumIdRequest, opts ...grpc.CallOption) (*ForumIdResponse, error)
	SearchForum(ctx context.Context, in *ForumSearchRequest, opts ...grpc.CallOption) (ForumService_SearchForumClient, error)
}

ForumServiceClient is the client API for ForumService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ForumServiceServer

ForumServiceServer is the server API for ForumService service. All implementations must embed UnimplementedForumServiceServer for forward compatibility

type ForumService_GetForumsClient

type ForumService_GetForumsClient interface {
	Recv() (*Forum, error)
	grpc.ClientStream
}

type ForumService_GetForumsServer

type ForumService_GetForumsServer interface {
	Send(*Forum) error
	grpc.ServerStream
}

type ForumService_GetPostsClient

type ForumService_GetPostsClient interface {
	Recv() (*Post, error)
	grpc.ClientStream
}

type ForumService_GetPostsServer

type ForumService_GetPostsServer interface {
	Send(*Post) error
	grpc.ServerStream
}

type ForumService_GetThreadsClient

type ForumService_GetThreadsClient interface {
	Recv() (*Thread, error)
	grpc.ClientStream
}

type ForumService_GetThreadsServer

type ForumService_GetThreadsServer interface {
	Send(*Thread) error
	grpc.ServerStream
}

type ForumService_SearchForumClient

type ForumService_SearchForumClient interface {
	Recv() (*Thread, error)
	grpc.ClientStream
}

type ForumService_SearchForumServer

type ForumService_SearchForumServer interface {
	Send(*Thread) error
	grpc.ServerStream
}

type GetForumResponse

type GetForumResponse struct {
	Forum *Forum `protobuf:"bytes,1,opt,name=forum,proto3" json:"forum,omitempty"`
	// contains filtered or unexported fields
}

func (*GetForumResponse) Descriptor deprecated

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

Deprecated: Use GetForumResponse.ProtoReflect.Descriptor instead.

func (*GetForumResponse) GetForum

func (x *GetForumResponse) GetForum() *Forum

func (*GetForumResponse) ProtoMessage

func (*GetForumResponse) ProtoMessage()

func (*GetForumResponse) ProtoReflect

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

func (*GetForumResponse) Reset

func (x *GetForumResponse) Reset()

func (*GetForumResponse) String

func (x *GetForumResponse) String() string

type GetForumsRequest

type GetForumsRequest struct {
	// contains filtered or unexported fields
}

func (*GetForumsRequest) Descriptor deprecated

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

Deprecated: Use GetForumsRequest.ProtoReflect.Descriptor instead.

func (*GetForumsRequest) ProtoMessage

func (*GetForumsRequest) ProtoMessage()

func (*GetForumsRequest) ProtoReflect

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

func (*GetForumsRequest) Reset

func (x *GetForumsRequest) Reset()

func (*GetForumsRequest) String

func (x *GetForumsRequest) String() string

type GetForumsResponse

type GetForumsResponse struct {
	Forums []*Forum `protobuf:"bytes,1,rep,name=forums,proto3" json:"forums,omitempty"`
	// contains filtered or unexported fields
}

func (*GetForumsResponse) Descriptor deprecated

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

Deprecated: Use GetForumsResponse.ProtoReflect.Descriptor instead.

func (*GetForumsResponse) GetForums

func (x *GetForumsResponse) GetForums() []*Forum

func (*GetForumsResponse) ProtoMessage

func (*GetForumsResponse) ProtoMessage()

func (*GetForumsResponse) ProtoReflect

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

func (*GetForumsResponse) Reset

func (x *GetForumsResponse) Reset()

func (*GetForumsResponse) String

func (x *GetForumsResponse) String() string

type GetPlacesRequest

type GetPlacesRequest struct {
	// contains filtered or unexported fields
}

func (*GetPlacesRequest) Descriptor deprecated

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

Deprecated: Use GetPlacesRequest.ProtoReflect.Descriptor instead.

func (*GetPlacesRequest) ProtoMessage

func (*GetPlacesRequest) ProtoMessage()

func (*GetPlacesRequest) ProtoReflect

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

func (*GetPlacesRequest) Reset

func (x *GetPlacesRequest) Reset()

func (*GetPlacesRequest) String

func (x *GetPlacesRequest) String() string

type GetThreadResponse

type GetThreadResponse struct {
	Thread *Thread `protobuf:"bytes,1,opt,name=thread,proto3" json:"thread,omitempty"`
	// contains filtered or unexported fields
}

func (*GetThreadResponse) Descriptor deprecated

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

Deprecated: Use GetThreadResponse.ProtoReflect.Descriptor instead.

func (*GetThreadResponse) GetThread

func (x *GetThreadResponse) GetThread() *Thread

func (*GetThreadResponse) ProtoMessage

func (*GetThreadResponse) ProtoMessage()

func (*GetThreadResponse) ProtoReflect

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

func (*GetThreadResponse) Reset

func (x *GetThreadResponse) Reset()

func (*GetThreadResponse) String

func (x *GetThreadResponse) String() string

type GetThreadsRequest

type GetThreadsRequest struct {
	// contains filtered or unexported fields
}

func (*GetThreadsRequest) Descriptor deprecated

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

Deprecated: Use GetThreadsRequest.ProtoReflect.Descriptor instead.

func (*GetThreadsRequest) ProtoMessage

func (*GetThreadsRequest) ProtoMessage()

func (*GetThreadsRequest) ProtoReflect

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

func (*GetThreadsRequest) Reset

func (x *GetThreadsRequest) Reset()

func (*GetThreadsRequest) String

func (x *GetThreadsRequest) String() string

type GetThreadsResponse

type GetThreadsResponse struct {
	Threads []*Thread `protobuf:"bytes,1,rep,name=threads,proto3" json:"threads,omitempty"`
	// contains filtered or unexported fields
}

func (*GetThreadsResponse) Descriptor deprecated

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

Deprecated: Use GetThreadsResponse.ProtoReflect.Descriptor instead.

func (*GetThreadsResponse) GetThreads

func (x *GetThreadsResponse) GetThreads() []*Thread

func (*GetThreadsResponse) ProtoMessage

func (*GetThreadsResponse) ProtoMessage()

func (*GetThreadsResponse) ProtoReflect

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

func (*GetThreadsResponse) Reset

func (x *GetThreadsResponse) Reset()

func (*GetThreadsResponse) String

func (x *GetThreadsResponse) String() string

type GetUserByUidRequest

type GetUserByUidRequest struct {
	Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserByUidRequest) Descriptor deprecated

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

Deprecated: Use GetUserByUidRequest.ProtoReflect.Descriptor instead.

func (*GetUserByUidRequest) GetUid

func (x *GetUserByUidRequest) GetUid() string

func (*GetUserByUidRequest) ProtoMessage

func (*GetUserByUidRequest) ProtoMessage()

func (*GetUserByUidRequest) ProtoReflect

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

func (*GetUserByUidRequest) Reset

func (x *GetUserByUidRequest) Reset()

func (*GetUserByUidRequest) String

func (x *GetUserByUidRequest) String() string

type GetUserRequest

type GetUserRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() uint64

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 GetUserRoleResponse

type GetUserRoleResponse struct {
	Role UserRole `protobuf:"varint,1,opt,name=role,proto3,enum=pb.UserRole" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRoleResponse) Descriptor deprecated

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

Deprecated: Use GetUserRoleResponse.ProtoReflect.Descriptor instead.

func (*GetUserRoleResponse) GetRole

func (x *GetUserRoleResponse) GetRole() UserRole

func (*GetUserRoleResponse) ProtoMessage

func (*GetUserRoleResponse) ProtoMessage()

func (*GetUserRoleResponse) ProtoReflect

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

func (*GetUserRoleResponse) Reset

func (x *GetUserRoleResponse) Reset()

func (*GetUserRoleResponse) String

func (x *GetUserRoleResponse) String() string

type ListUsersRequest

type ListUsersRequest struct {
	// contains filtered or unexported fields
}

func (*ListUsersRequest) Descriptor deprecated

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

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

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 Place

type Place struct {
	Id          uint64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId      uint64  `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Name        string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description string  `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Latitude    float64 `protobuf:"fixed64,5,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude   float64 `protobuf:"fixed64,6,opt,name=longitude,proto3" json:"longitude,omitempty"`
	CreatedAt   int64   `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   int64   `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Place) Descriptor deprecated

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

Deprecated: Use Place.ProtoReflect.Descriptor instead.

func (*Place) GetCreatedAt

func (x *Place) GetCreatedAt() int64

func (*Place) GetDescription

func (x *Place) GetDescription() string

func (*Place) GetId

func (x *Place) GetId() uint64

func (*Place) GetLatitude

func (x *Place) GetLatitude() float64

func (*Place) GetLongitude

func (x *Place) GetLongitude() float64

func (*Place) GetName

func (x *Place) GetName() string

func (*Place) GetUpdatedAt

func (x *Place) GetUpdatedAt() int64

func (*Place) GetUserId

func (x *Place) GetUserId() uint64

func (*Place) ProtoMessage

func (*Place) ProtoMessage()

func (*Place) ProtoReflect

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

func (*Place) Reset

func (x *Place) Reset()

func (*Place) String

func (x *Place) String() string

type PlaceIdRequest

type PlaceIdRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaceIdRequest) Descriptor deprecated

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

Deprecated: Use PlaceIdRequest.ProtoReflect.Descriptor instead.

func (*PlaceIdRequest) GetId

func (x *PlaceIdRequest) GetId() uint64

func (*PlaceIdRequest) ProtoMessage

func (*PlaceIdRequest) ProtoMessage()

func (*PlaceIdRequest) ProtoReflect

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

func (*PlaceIdRequest) Reset

func (x *PlaceIdRequest) Reset()

func (*PlaceIdRequest) String

func (x *PlaceIdRequest) String() string

type PlaceIdResponse

type PlaceIdResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaceIdResponse) Descriptor deprecated

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

Deprecated: Use PlaceIdResponse.ProtoReflect.Descriptor instead.

func (*PlaceIdResponse) GetId

func (x *PlaceIdResponse) GetId() uint64

func (*PlaceIdResponse) ProtoMessage

func (*PlaceIdResponse) ProtoMessage()

func (*PlaceIdResponse) ProtoReflect

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

func (*PlaceIdResponse) Reset

func (x *PlaceIdResponse) Reset()

func (*PlaceIdResponse) String

func (x *PlaceIdResponse) String() string

type PlaceServiceClient

type PlaceServiceClient interface {
	CreatePlace(ctx context.Context, in *Place, opts ...grpc.CallOption) (*PlaceIdResponse, error)
	GetPlace(ctx context.Context, in *PlaceIdRequest, opts ...grpc.CallOption) (*Place, error)
	GetPlaces(ctx context.Context, in *GetPlacesRequest, opts ...grpc.CallOption) (PlaceService_GetPlacesClient, error)
	UpdatePlace(ctx context.Context, in *Place, opts ...grpc.CallOption) (*Place, error)
	DeletePlace(ctx context.Context, in *PlaceIdRequest, opts ...grpc.CallOption) (*PlaceIdResponse, error)
}

PlaceServiceClient is the client API for PlaceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PlaceServiceServer

type PlaceServiceServer interface {
	CreatePlace(context.Context, *Place) (*PlaceIdResponse, error)
	GetPlace(context.Context, *PlaceIdRequest) (*Place, error)
	GetPlaces(*GetPlacesRequest, PlaceService_GetPlacesServer) error
	UpdatePlace(context.Context, *Place) (*Place, error)
	DeletePlace(context.Context, *PlaceIdRequest) (*PlaceIdResponse, error)
	// contains filtered or unexported methods
}

PlaceServiceServer is the server API for PlaceService service. All implementations must embed UnimplementedPlaceServiceServer for forward compatibility

type PlaceService_GetPlacesClient

type PlaceService_GetPlacesClient interface {
	Recv() (*Place, error)
	grpc.ClientStream
}

type PlaceService_GetPlacesServer

type PlaceService_GetPlacesServer interface {
	Send(*Place) error
	grpc.ServerStream
}

type Post

type Post struct {
	Id        uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ThreadId  uint64 `protobuf:"varint,2,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"`
	UserId    uint64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Msg       string `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"`
	CreatedAt int64  `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt int64  `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Post) Descriptor deprecated

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

Deprecated: Use Post.ProtoReflect.Descriptor instead.

func (*Post) GetCreatedAt

func (x *Post) GetCreatedAt() int64

func (*Post) GetId

func (x *Post) GetId() uint64

func (*Post) GetMsg

func (x *Post) GetMsg() string

func (*Post) GetThreadId

func (x *Post) GetThreadId() uint64

func (*Post) GetUpdatedAt

func (x *Post) GetUpdatedAt() int64

func (*Post) GetUserId

func (x *Post) GetUserId() uint64

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 Thread

type Thread struct {
	Id        uint64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ForumId   uint64  `protobuf:"varint,2,opt,name=forum_id,json=forumId,proto3" json:"forum_id,omitempty"`
	UserId    uint64  `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Title     string  `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	Msg       string  `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg,omitempty"`
	Posts     []*Post `protobuf:"bytes,6,rep,name=posts,proto3" json:"posts,omitempty"`
	CreatedAt int64   `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt int64   `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Thread) Descriptor deprecated

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

Deprecated: Use Thread.ProtoReflect.Descriptor instead.

func (*Thread) GetCreatedAt

func (x *Thread) GetCreatedAt() int64

func (*Thread) GetForumId

func (x *Thread) GetForumId() uint64

func (*Thread) GetId

func (x *Thread) GetId() uint64

func (*Thread) GetMsg

func (x *Thread) GetMsg() string

func (*Thread) GetPosts

func (x *Thread) GetPosts() []*Post

func (*Thread) GetTitle

func (x *Thread) GetTitle() string

func (*Thread) GetUpdatedAt

func (x *Thread) GetUpdatedAt() int64

func (*Thread) GetUserId

func (x *Thread) GetUserId() uint64

func (*Thread) ProtoMessage

func (*Thread) ProtoMessage()

func (*Thread) ProtoReflect

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

func (*Thread) Reset

func (x *Thread) Reset()

func (*Thread) String

func (x *Thread) String() string

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) AddUserToRole

func (UnimplementedAuthServiceServer) DeleteUser

func (UnimplementedAuthServiceServer) GetUser

func (UnimplementedAuthServiceServer) GetUserByUid

func (UnimplementedAuthServiceServer) GetUserRole

func (UnimplementedAuthServiceServer) ListUsers

func (UnimplementedAuthServiceServer) SignIn

func (UnimplementedAuthServiceServer) UpdateUser

type UnimplementedForumServiceServer

type UnimplementedForumServiceServer struct {
}

UnimplementedForumServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedForumServiceServer) CreateForum

func (UnimplementedForumServiceServer) CreatePost

func (UnimplementedForumServiceServer) CreateThread

func (UnimplementedForumServiceServer) DeleteForum

func (UnimplementedForumServiceServer) DeletePost

func (UnimplementedForumServiceServer) DeleteThread

func (UnimplementedForumServiceServer) GetForum

func (UnimplementedForumServiceServer) GetForums

func (UnimplementedForumServiceServer) GetPost

func (UnimplementedForumServiceServer) GetPosts

func (UnimplementedForumServiceServer) GetThread

func (UnimplementedForumServiceServer) GetThreads

func (UnimplementedForumServiceServer) SearchForum

func (UnimplementedForumServiceServer) UpdateForum

func (UnimplementedForumServiceServer) UpdatePost

func (UnimplementedForumServiceServer) UpdateThread

type UnimplementedPlaceServiceServer

type UnimplementedPlaceServiceServer struct {
}

UnimplementedPlaceServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPlaceServiceServer) CreatePlace

func (UnimplementedPlaceServiceServer) DeletePlace

func (UnimplementedPlaceServiceServer) GetPlace

func (UnimplementedPlaceServiceServer) GetPlaces

func (UnimplementedPlaceServiceServer) UpdatePlace

type UnsafeAuthServiceServer

type UnsafeAuthServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.

type UnsafeForumServiceServer

type UnsafeForumServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeForumServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ForumServiceServer will result in compilation errors.

type UnsafePlaceServiceServer

type UnsafePlaceServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePlaceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PlaceServiceServer will result in compilation errors.

type User

type User struct {
	Id            uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Uid           string   `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	Name          string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Email         string   `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	EmailVerified bool     `protobuf:"varint,5,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified,omitempty"`
	Picture       string   `protobuf:"bytes,6,opt,name=picture,proto3" json:"picture,omitempty"`
	Role          UserRole `protobuf:"varint,7,opt,name=role,proto3,enum=pb.UserRole" json:"role,omitempty"`
	CreatedAt     int64    `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt     int64    `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() int64

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetEmailVerified

func (x *User) GetEmailVerified() bool

func (*User) GetId

func (x *User) GetId() uint64

func (*User) GetName

func (x *User) GetName() string

func (*User) GetPicture

func (x *User) GetPicture() string

func (*User) GetRole

func (x *User) GetRole() UserRole

func (*User) GetUid

func (x *User) GetUid() string

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() int64

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 UserRole

type UserRole int32
const (
	UserRole_DEFAULT UserRole = 0
	UserRole_ADMIN   UserRole = 1
)

func (UserRole) Descriptor

func (UserRole) Descriptor() protoreflect.EnumDescriptor

func (UserRole) Enum

func (x UserRole) Enum() *UserRole

func (UserRole) EnumDescriptor deprecated

func (UserRole) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserRole.Descriptor instead.

func (UserRole) Number

func (x UserRole) Number() protoreflect.EnumNumber

func (UserRole) String

func (x UserRole) String() string

func (UserRole) Type

Jump to

Keyboard shortcuts

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