Documentation ¶
Index ¶
- Variables
- func RegisterReportAPIServer(s grpc.ServiceRegistrar, srv ReportAPIServer)
- type ActionReason
- func (*ActionReason) Descriptor() ([]byte, []int)deprecated
- func (x *ActionReason) GetCreatedAt() string
- func (x *ActionReason) GetId() string
- func (x *ActionReason) GetReason() string
- func (*ActionReason) ProtoMessage()
- func (x *ActionReason) ProtoReflect() protoreflect.Message
- func (x *ActionReason) Reset()
- func (x *ActionReason) String() string
- type CreateReportReasonRequest
- func (*CreateReportReasonRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReportReasonRequest) GetEntityType() ReportEntityEnum
- func (x *CreateReportReasonRequest) GetReason() string
- func (*CreateReportReasonRequest) ProtoMessage()
- func (x *CreateReportReasonRequest) ProtoReflect() protoreflect.Message
- func (x *CreateReportReasonRequest) Reset()
- func (x *CreateReportReasonRequest) String() string
- type CreateReportRequest
- func (*CreateReportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReportRequest) GetReport() *Report
- func (*CreateReportRequest) ProtoMessage()
- func (x *CreateReportRequest) ProtoReflect() protoreflect.Message
- func (x *CreateReportRequest) Reset()
- func (x *CreateReportRequest) String() string
- type Empty
- type GetActionReasonsRequest
- type GetActionReasonsResponse
- func (*GetActionReasonsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetActionReasonsResponse) GetActionReasons() []*ActionReason
- func (*GetActionReasonsResponse) ProtoMessage()
- func (x *GetActionReasonsResponse) ProtoReflect() protoreflect.Message
- func (x *GetActionReasonsResponse) Reset()
- func (x *GetActionReasonsResponse) String() string
- type GetActionsByModeratorRequest
- func (*GetActionsByModeratorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetActionsByModeratorRequest) GetCursor() *PageCursor
- func (x *GetActionsByModeratorRequest) GetModeratorId() string
- func (*GetActionsByModeratorRequest) ProtoMessage()
- func (x *GetActionsByModeratorRequest) ProtoReflect() protoreflect.Message
- func (x *GetActionsByModeratorRequest) Reset()
- func (x *GetActionsByModeratorRequest) String() string
- type GetActionsByModeratorResponse
- func (*GetActionsByModeratorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetActionsByModeratorResponse) GetActions() []*ReportAction
- func (x *GetActionsByModeratorResponse) GetInfo() *PageInfo
- func (*GetActionsByModeratorResponse) ProtoMessage()
- func (x *GetActionsByModeratorResponse) ProtoReflect() protoreflect.Message
- func (x *GetActionsByModeratorResponse) Reset()
- func (x *GetActionsByModeratorResponse) String() string
- type GetActionsForEntityRequest
- func (*GetActionsForEntityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetActionsForEntityRequest) GetEntityId() string
- func (x *GetActionsForEntityRequest) GetEntityType() ReportEntityEnum
- func (*GetActionsForEntityRequest) ProtoMessage()
- func (x *GetActionsForEntityRequest) ProtoReflect() protoreflect.Message
- func (x *GetActionsForEntityRequest) Reset()
- func (x *GetActionsForEntityRequest) String() string
- type GetActionsForEntityResponse
- func (*GetActionsForEntityResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetActionsForEntityResponse) GetActions() []*ReportAction
- func (x *GetActionsForEntityResponse) GetEntityId() string
- func (x *GetActionsForEntityResponse) GetEntityType() ReportEntityEnum
- func (*GetActionsForEntityResponse) ProtoMessage()
- func (x *GetActionsForEntityResponse) ProtoReflect() protoreflect.Message
- func (x *GetActionsForEntityResponse) Reset()
- func (x *GetActionsForEntityResponse) String() string
- type GetReportReasonsRequest
- func (*GetReportReasonsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReportReasonsRequest) GetEntityType() ReportEntityEnum
- func (*GetReportReasonsRequest) ProtoMessage()
- func (x *GetReportReasonsRequest) ProtoReflect() protoreflect.Message
- func (x *GetReportReasonsRequest) Reset()
- func (x *GetReportReasonsRequest) String() string
- type GetReportReasonsResponse
- func (*GetReportReasonsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReportReasonsResponse) GetReasons() []*ReportReason
- func (*GetReportReasonsResponse) ProtoMessage()
- func (x *GetReportReasonsResponse) ProtoReflect() protoreflect.Message
- func (x *GetReportReasonsResponse) Reset()
- func (x *GetReportReasonsResponse) String() string
- type GetReportsByReporterRequest
- func (*GetReportsByReporterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReportsByReporterRequest) GetCursor() *PageCursor
- func (x *GetReportsByReporterRequest) GetReportStatus() ReportStatusEnum
- func (x *GetReportsByReporterRequest) GetReporterId() string
- func (*GetReportsByReporterRequest) ProtoMessage()
- func (x *GetReportsByReporterRequest) ProtoReflect() protoreflect.Message
- func (x *GetReportsByReporterRequest) Reset()
- func (x *GetReportsByReporterRequest) String() string
- type GetReportsByReporterResponse
- func (*GetReportsByReporterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReportsByReporterResponse) GetInfo() *PageInfo
- func (x *GetReportsByReporterResponse) GetReports() []*Report
- func (*GetReportsByReporterResponse) ProtoMessage()
- func (x *GetReportsByReporterResponse) ProtoReflect() protoreflect.Message
- func (x *GetReportsByReporterResponse) Reset()
- func (x *GetReportsByReporterResponse) String() string
- type GetReportsCountRequest
- func (*GetReportsCountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReportsCountRequest) GetStatus() ReportStatusEnum
- func (*GetReportsCountRequest) ProtoMessage()
- func (x *GetReportsCountRequest) ProtoReflect() protoreflect.Message
- func (x *GetReportsCountRequest) Reset()
- func (x *GetReportsCountRequest) String() string
- type GetReportsCountResponse
- func (*GetReportsCountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReportsCountResponse) GetCount() int64
- func (*GetReportsCountResponse) ProtoMessage()
- func (x *GetReportsCountResponse) ProtoReflect() protoreflect.Message
- func (x *GetReportsCountResponse) Reset()
- func (x *GetReportsCountResponse) String() string
- type GetReportsRequest
- func (*GetReportsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReportsRequest) GetCursor() *PageCursor
- func (x *GetReportsRequest) GetEntity() ReportEntityEnum
- func (x *GetReportsRequest) GetReportStatus() ReportStatusEnum
- func (*GetReportsRequest) ProtoMessage()
- func (x *GetReportsRequest) ProtoReflect() protoreflect.Message
- func (x *GetReportsRequest) Reset()
- func (x *GetReportsRequest) String() string
- type GetReportsResponse
- func (*GetReportsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReportsResponse) GetInfo() *PageInfo
- func (x *GetReportsResponse) GetReportedEntities() []*ReportedEntity
- func (*GetReportsResponse) ProtoMessage()
- func (x *GetReportsResponse) ProtoReflect() protoreflect.Message
- func (x *GetReportsResponse) Reset()
- func (x *GetReportsResponse) String() string
- type PageCursor
- func (*PageCursor) Descriptor() ([]byte, []int)deprecated
- func (x *PageCursor) GetDir() PageDir
- func (x *PageCursor) GetLastId() string
- func (x *PageCursor) GetLimit() uint32
- func (*PageCursor) ProtoMessage()
- func (x *PageCursor) ProtoReflect() protoreflect.Message
- func (x *PageCursor) Reset()
- func (x *PageCursor) String() string
- type PageDir
- type PageInfo
- func (*PageInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PageInfo) GetFirstId() string
- func (x *PageInfo) GetHasNext() bool
- func (x *PageInfo) GetHasPrev() bool
- func (x *PageInfo) GetLastId() string
- func (x *PageInfo) GetLength() uint32
- func (*PageInfo) ProtoMessage()
- func (x *PageInfo) ProtoReflect() protoreflect.Message
- func (x *PageInfo) Reset()
- func (x *PageInfo) String() string
- type Report
- func (*Report) Descriptor() ([]byte, []int)deprecated
- func (x *Report) GetCreatedAt() string
- func (x *Report) GetDescription() string
- func (x *Report) GetEntityId() string
- func (x *Report) GetEntityType() ReportEntityEnum
- func (x *Report) GetId() string
- func (x *Report) GetReason() string
- func (x *Report) GetReporter() *Reporter
- func (x *Report) GetReporterId() string
- func (x *Report) GetStatus() ReportStatusEnum
- func (*Report) ProtoMessage()
- func (x *Report) ProtoReflect() protoreflect.Message
- func (x *Report) Reset()
- func (x *Report) String() string
- type ReportAPIClient
- type ReportAPIServer
- type ReportAction
- func (*ReportAction) Descriptor() ([]byte, []int)deprecated
- func (x *ReportAction) GetAction() ReportActionEnum
- func (x *ReportAction) GetCreatedAt() string
- func (x *ReportAction) GetDescription() string
- func (x *ReportAction) GetEntityId() string
- func (x *ReportAction) GetModeratorId() string
- func (x *ReportAction) GetReportId() string
- func (*ReportAction) ProtoMessage()
- func (x *ReportAction) ProtoReflect() protoreflect.Message
- func (x *ReportAction) Reset()
- func (x *ReportAction) String() string
- type ReportActionEnum
- func (ReportActionEnum) Descriptor() protoreflect.EnumDescriptor
- func (x ReportActionEnum) Enum() *ReportActionEnum
- func (ReportActionEnum) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReportActionEnum) Number() protoreflect.EnumNumber
- func (x ReportActionEnum) String() string
- func (ReportActionEnum) Type() protoreflect.EnumType
- type ReportEntityEnum
- func (ReportEntityEnum) Descriptor() protoreflect.EnumDescriptor
- func (x ReportEntityEnum) Enum() *ReportEntityEnum
- func (ReportEntityEnum) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReportEntityEnum) Number() protoreflect.EnumNumber
- func (x ReportEntityEnum) String() string
- func (ReportEntityEnum) Type() protoreflect.EnumType
- type ReportReason
- func (*ReportReason) Descriptor() ([]byte, []int)deprecated
- func (x *ReportReason) GetCreatedAt() string
- func (x *ReportReason) GetEntityType() ReportEntityEnum
- func (x *ReportReason) GetId() string
- func (x *ReportReason) GetReason() string
- func (*ReportReason) ProtoMessage()
- func (x *ReportReason) ProtoReflect() protoreflect.Message
- func (x *ReportReason) Reset()
- func (x *ReportReason) String() string
- type ReportStatusEnum
- func (ReportStatusEnum) Descriptor() protoreflect.EnumDescriptor
- func (x ReportStatusEnum) Enum() *ReportStatusEnum
- func (ReportStatusEnum) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReportStatusEnum) Number() protoreflect.EnumNumber
- func (x ReportStatusEnum) String() string
- func (ReportStatusEnum) Type() protoreflect.EnumType
- type ReportedEntity
- func (*ReportedEntity) Descriptor() ([]byte, []int)deprecated
- func (x *ReportedEntity) GetEntity() ReportEntityEnum
- func (x *ReportedEntity) GetEntityId() string
- func (x *ReportedEntity) GetReportCount() int32
- func (x *ReportedEntity) GetReports() []*Report
- func (*ReportedEntity) ProtoMessage()
- func (x *ReportedEntity) ProtoReflect() protoreflect.Message
- func (x *ReportedEntity) Reset()
- func (x *ReportedEntity) String() string
- type Reporter
- func (*Reporter) Descriptor() ([]byte, []int)deprecated
- func (x *Reporter) GetAge() int64
- func (x *Reporter) GetEmail() string
- func (x *Reporter) GetFullName() string
- func (x *Reporter) GetIsBanned() bool
- func (x *Reporter) GetIsVerified() bool
- func (x *Reporter) GetPhone() string
- func (x *Reporter) GetProfileImageUrl() string
- func (x *Reporter) GetUsername() string
- func (*Reporter) ProtoMessage()
- func (x *Reporter) ProtoReflect() protoreflect.Message
- func (x *Reporter) Reset()
- func (x *Reporter) String() string
- type UnimplementedReportAPIServer
- func (UnimplementedReportAPIServer) CreateReport(context.Context, *CreateReportRequest) (*Empty, error)
- func (UnimplementedReportAPIServer) CreateReportReason(context.Context, *CreateReportReasonRequest) (*Empty, error)
- func (UnimplementedReportAPIServer) GetActionReasons(context.Context, *GetActionReasonsRequest) (*GetActionReasonsResponse, error)
- func (UnimplementedReportAPIServer) GetActionsByModerator(context.Context, *GetActionsByModeratorRequest) (*GetActionsByModeratorResponse, error)
- func (UnimplementedReportAPIServer) GetActionsForEntity(context.Context, *GetActionsForEntityRequest) (*GetActionsForEntityResponse, error)
- func (UnimplementedReportAPIServer) GetReportReasons(context.Context, *GetReportReasonsRequest) (*GetReportReasonsResponse, error)
- func (UnimplementedReportAPIServer) GetReports(context.Context, *GetReportsRequest) (*GetReportsResponse, error)
- func (UnimplementedReportAPIServer) GetReportsByReporter(context.Context, *GetReportsByReporterRequest) (*GetReportsByReporterResponse, error)
- func (UnimplementedReportAPIServer) GetReportsCount(context.Context, *GetReportsCountRequest) (*GetReportsCountResponse, error)
- func (UnimplementedReportAPIServer) UpdateReportStatus(context.Context, *UpdateReportStatusRequest) (*Empty, error)
- type UnsafeReportAPIServer
- type UpdateReportStatusRequest
- func (*UpdateReportStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateReportStatusRequest) GetReportId() string
- func (x *UpdateReportStatusRequest) GetStatus() ReportStatusEnum
- func (*UpdateReportStatusRequest) ProtoMessage()
- func (x *UpdateReportStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateReportStatusRequest) Reset()
- func (x *UpdateReportStatusRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ReportEntityEnum_name = map[int32]string{ 0: "Cricle", 1: "Chat", 2: "Post", 3: "Comment", 4: "User", 5: "Collection", 6: "Slice", 7: "Message", 8: "All", } ReportEntityEnum_value = map[string]int32{ "Cricle": 0, "Chat": 1, "Post": 2, "Comment": 3, "User": 4, "Collection": 5, "Slice": 6, "Message": 7, "All": 8, } )
Enum value maps for ReportEntityEnum.
var ( ReportActionEnum_name = map[int32]string{ 0: "Ban", 1: "Delete", 2: "NotExplicit", } ReportActionEnum_value = map[string]int32{ "Ban": 0, "Delete": 1, "NotExplicit": 2, } )
Enum value maps for ReportActionEnum.
var ( ReportStatusEnum_name = map[int32]string{ 0: "Unresolved", 1: "Pending", 2: "Resolved", 3: "AllStatus", } ReportStatusEnum_value = map[string]int32{ "Unresolved": 0, "Pending": 1, "Resolved": 2, "AllStatus": 3, } )
Enum value maps for ReportStatusEnum.
var ( PageDir_name = map[int32]string{ 0: "Asc", 1: "Desc", } PageDir_value = map[string]int32{ "Asc": 0, "Desc": 1, } )
Enum value maps for PageDir.
var File_report_api_report_v1_report_proto protoreflect.FileDescriptor
var ReportAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "report_api.v1.ReportAPI", HandlerType: (*ReportAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateReport", Handler: _ReportAPI_CreateReport_Handler, }, { MethodName: "CreateReportReason", Handler: _ReportAPI_CreateReportReason_Handler, }, { MethodName: "GetReports", Handler: _ReportAPI_GetReports_Handler, }, { MethodName: "GetActionsForEntity", Handler: _ReportAPI_GetActionsForEntity_Handler, }, { MethodName: "GetActionsByModerator", Handler: _ReportAPI_GetActionsByModerator_Handler, }, { MethodName: "GetReportReasons", Handler: _ReportAPI_GetReportReasons_Handler, }, { MethodName: "GetReportsByReporter", Handler: _ReportAPI_GetReportsByReporter_Handler, }, { MethodName: "UpdateReportStatus", Handler: _ReportAPI_UpdateReportStatus_Handler, }, { MethodName: "GetReportsCount", Handler: _ReportAPI_GetReportsCount_Handler, }, { MethodName: "GetActionReasons", Handler: _ReportAPI_GetActionReasons_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "report-api/report/v1/report.proto", }
ReportAPI_ServiceDesc is the grpc.ServiceDesc for ReportAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterReportAPIServer ¶
func RegisterReportAPIServer(s grpc.ServiceRegistrar, srv ReportAPIServer)
Types ¶
type ActionReason ¶
type ActionReason struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` CreatedAt string `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*ActionReason) Descriptor
deprecated
func (*ActionReason) Descriptor() ([]byte, []int)
Deprecated: Use ActionReason.ProtoReflect.Descriptor instead.
func (*ActionReason) GetCreatedAt ¶
func (x *ActionReason) GetCreatedAt() string
func (*ActionReason) GetId ¶
func (x *ActionReason) GetId() string
func (*ActionReason) GetReason ¶
func (x *ActionReason) GetReason() string
func (*ActionReason) ProtoMessage ¶
func (*ActionReason) ProtoMessage()
func (*ActionReason) ProtoReflect ¶
func (x *ActionReason) ProtoReflect() protoreflect.Message
func (*ActionReason) Reset ¶
func (x *ActionReason) Reset()
func (*ActionReason) String ¶
func (x *ActionReason) String() string
type CreateReportReasonRequest ¶
type CreateReportReasonRequest struct { EntityType ReportEntityEnum `` /* 128-byte string literal not displayed */ Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // contains filtered or unexported fields }
func (*CreateReportReasonRequest) Descriptor
deprecated
func (*CreateReportReasonRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateReportReasonRequest.ProtoReflect.Descriptor instead.
func (*CreateReportReasonRequest) GetEntityType ¶
func (x *CreateReportReasonRequest) GetEntityType() ReportEntityEnum
func (*CreateReportReasonRequest) GetReason ¶
func (x *CreateReportReasonRequest) GetReason() string
func (*CreateReportReasonRequest) ProtoMessage ¶
func (*CreateReportReasonRequest) ProtoMessage()
func (*CreateReportReasonRequest) ProtoReflect ¶
func (x *CreateReportReasonRequest) ProtoReflect() protoreflect.Message
func (*CreateReportReasonRequest) Reset ¶
func (x *CreateReportReasonRequest) Reset()
func (*CreateReportReasonRequest) String ¶
func (x *CreateReportReasonRequest) String() string
type CreateReportRequest ¶
type CreateReportRequest struct { Report *Report `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` // contains filtered or unexported fields }
func (*CreateReportRequest) Descriptor
deprecated
func (*CreateReportRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateReportRequest.ProtoReflect.Descriptor instead.
func (*CreateReportRequest) GetReport ¶
func (x *CreateReportRequest) GetReport() *Report
func (*CreateReportRequest) ProtoMessage ¶
func (*CreateReportRequest) ProtoMessage()
func (*CreateReportRequest) ProtoReflect ¶
func (x *CreateReportRequest) ProtoReflect() protoreflect.Message
func (*CreateReportRequest) Reset ¶
func (x *CreateReportRequest) Reset()
func (*CreateReportRequest) String ¶
func (x *CreateReportRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetActionReasonsRequest ¶
type GetActionReasonsRequest struct {
// contains filtered or unexported fields
}
func (*GetActionReasonsRequest) Descriptor
deprecated
func (*GetActionReasonsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetActionReasonsRequest.ProtoReflect.Descriptor instead.
func (*GetActionReasonsRequest) ProtoMessage ¶
func (*GetActionReasonsRequest) ProtoMessage()
func (*GetActionReasonsRequest) ProtoReflect ¶
func (x *GetActionReasonsRequest) ProtoReflect() protoreflect.Message
func (*GetActionReasonsRequest) Reset ¶
func (x *GetActionReasonsRequest) Reset()
func (*GetActionReasonsRequest) String ¶
func (x *GetActionReasonsRequest) String() string
type GetActionReasonsResponse ¶
type GetActionReasonsResponse struct { ActionReasons []*ActionReason `protobuf:"bytes,1,rep,name=action_reasons,json=actionReasons,proto3" json:"action_reasons,omitempty"` // contains filtered or unexported fields }
func (*GetActionReasonsResponse) Descriptor
deprecated
func (*GetActionReasonsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetActionReasonsResponse.ProtoReflect.Descriptor instead.
func (*GetActionReasonsResponse) GetActionReasons ¶
func (x *GetActionReasonsResponse) GetActionReasons() []*ActionReason
func (*GetActionReasonsResponse) ProtoMessage ¶
func (*GetActionReasonsResponse) ProtoMessage()
func (*GetActionReasonsResponse) ProtoReflect ¶
func (x *GetActionReasonsResponse) ProtoReflect() protoreflect.Message
func (*GetActionReasonsResponse) Reset ¶
func (x *GetActionReasonsResponse) Reset()
func (*GetActionReasonsResponse) String ¶
func (x *GetActionReasonsResponse) String() string
type GetActionsByModeratorRequest ¶
type GetActionsByModeratorRequest struct { ModeratorId string `protobuf:"bytes,1,opt,name=moderator_id,json=moderatorId,proto3" json:"moderator_id,omitempty"` Cursor *PageCursor `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"` // contains filtered or unexported fields }
func (*GetActionsByModeratorRequest) Descriptor
deprecated
func (*GetActionsByModeratorRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetActionsByModeratorRequest.ProtoReflect.Descriptor instead.
func (*GetActionsByModeratorRequest) GetCursor ¶
func (x *GetActionsByModeratorRequest) GetCursor() *PageCursor
func (*GetActionsByModeratorRequest) GetModeratorId ¶
func (x *GetActionsByModeratorRequest) GetModeratorId() string
func (*GetActionsByModeratorRequest) ProtoMessage ¶
func (*GetActionsByModeratorRequest) ProtoMessage()
func (*GetActionsByModeratorRequest) ProtoReflect ¶
func (x *GetActionsByModeratorRequest) ProtoReflect() protoreflect.Message
func (*GetActionsByModeratorRequest) Reset ¶
func (x *GetActionsByModeratorRequest) Reset()
func (*GetActionsByModeratorRequest) String ¶
func (x *GetActionsByModeratorRequest) String() string
type GetActionsByModeratorResponse ¶
type GetActionsByModeratorResponse struct { Actions []*ReportAction `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"` Info *PageInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*GetActionsByModeratorResponse) Descriptor
deprecated
func (*GetActionsByModeratorResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetActionsByModeratorResponse.ProtoReflect.Descriptor instead.
func (*GetActionsByModeratorResponse) GetActions ¶
func (x *GetActionsByModeratorResponse) GetActions() []*ReportAction
func (*GetActionsByModeratorResponse) GetInfo ¶
func (x *GetActionsByModeratorResponse) GetInfo() *PageInfo
func (*GetActionsByModeratorResponse) ProtoMessage ¶
func (*GetActionsByModeratorResponse) ProtoMessage()
func (*GetActionsByModeratorResponse) ProtoReflect ¶
func (x *GetActionsByModeratorResponse) ProtoReflect() protoreflect.Message
func (*GetActionsByModeratorResponse) Reset ¶
func (x *GetActionsByModeratorResponse) Reset()
func (*GetActionsByModeratorResponse) String ¶
func (x *GetActionsByModeratorResponse) String() string
type GetActionsForEntityRequest ¶
type GetActionsForEntityRequest struct { EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` EntityType ReportEntityEnum `` /* 128-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetActionsForEntityRequest) Descriptor
deprecated
func (*GetActionsForEntityRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetActionsForEntityRequest.ProtoReflect.Descriptor instead.
func (*GetActionsForEntityRequest) GetEntityId ¶
func (x *GetActionsForEntityRequest) GetEntityId() string
func (*GetActionsForEntityRequest) GetEntityType ¶
func (x *GetActionsForEntityRequest) GetEntityType() ReportEntityEnum
func (*GetActionsForEntityRequest) ProtoMessage ¶
func (*GetActionsForEntityRequest) ProtoMessage()
func (*GetActionsForEntityRequest) ProtoReflect ¶
func (x *GetActionsForEntityRequest) ProtoReflect() protoreflect.Message
func (*GetActionsForEntityRequest) Reset ¶
func (x *GetActionsForEntityRequest) Reset()
func (*GetActionsForEntityRequest) String ¶
func (x *GetActionsForEntityRequest) String() string
type GetActionsForEntityResponse ¶
type GetActionsForEntityResponse struct { EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` EntityType ReportEntityEnum `` /* 128-byte string literal not displayed */ Actions []*ReportAction `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` // contains filtered or unexported fields }
func (*GetActionsForEntityResponse) Descriptor
deprecated
func (*GetActionsForEntityResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetActionsForEntityResponse.ProtoReflect.Descriptor instead.
func (*GetActionsForEntityResponse) GetActions ¶
func (x *GetActionsForEntityResponse) GetActions() []*ReportAction
func (*GetActionsForEntityResponse) GetEntityId ¶
func (x *GetActionsForEntityResponse) GetEntityId() string
func (*GetActionsForEntityResponse) GetEntityType ¶
func (x *GetActionsForEntityResponse) GetEntityType() ReportEntityEnum
func (*GetActionsForEntityResponse) ProtoMessage ¶
func (*GetActionsForEntityResponse) ProtoMessage()
func (*GetActionsForEntityResponse) ProtoReflect ¶
func (x *GetActionsForEntityResponse) ProtoReflect() protoreflect.Message
func (*GetActionsForEntityResponse) Reset ¶
func (x *GetActionsForEntityResponse) Reset()
func (*GetActionsForEntityResponse) String ¶
func (x *GetActionsForEntityResponse) String() string
type GetReportReasonsRequest ¶
type GetReportReasonsRequest struct { EntityType ReportEntityEnum `` /* 128-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetReportReasonsRequest) Descriptor
deprecated
func (*GetReportReasonsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReportReasonsRequest.ProtoReflect.Descriptor instead.
func (*GetReportReasonsRequest) GetEntityType ¶
func (x *GetReportReasonsRequest) GetEntityType() ReportEntityEnum
func (*GetReportReasonsRequest) ProtoMessage ¶
func (*GetReportReasonsRequest) ProtoMessage()
func (*GetReportReasonsRequest) ProtoReflect ¶
func (x *GetReportReasonsRequest) ProtoReflect() protoreflect.Message
func (*GetReportReasonsRequest) Reset ¶
func (x *GetReportReasonsRequest) Reset()
func (*GetReportReasonsRequest) String ¶
func (x *GetReportReasonsRequest) String() string
type GetReportReasonsResponse ¶
type GetReportReasonsResponse struct { Reasons []*ReportReason `protobuf:"bytes,1,rep,name=reasons,proto3" json:"reasons,omitempty"` // contains filtered or unexported fields }
func (*GetReportReasonsResponse) Descriptor
deprecated
func (*GetReportReasonsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReportReasonsResponse.ProtoReflect.Descriptor instead.
func (*GetReportReasonsResponse) GetReasons ¶
func (x *GetReportReasonsResponse) GetReasons() []*ReportReason
func (*GetReportReasonsResponse) ProtoMessage ¶
func (*GetReportReasonsResponse) ProtoMessage()
func (*GetReportReasonsResponse) ProtoReflect ¶
func (x *GetReportReasonsResponse) ProtoReflect() protoreflect.Message
func (*GetReportReasonsResponse) Reset ¶
func (x *GetReportReasonsResponse) Reset()
func (*GetReportReasonsResponse) String ¶
func (x *GetReportReasonsResponse) String() string
type GetReportsByReporterRequest ¶
type GetReportsByReporterRequest struct { ReporterId string `protobuf:"bytes,1,opt,name=reporter_id,json=reporterId,proto3" json:"reporter_id,omitempty"` ReportStatus ReportStatusEnum `` /* 134-byte string literal not displayed */ Cursor *PageCursor `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"` // contains filtered or unexported fields }
func (*GetReportsByReporterRequest) Descriptor
deprecated
func (*GetReportsByReporterRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReportsByReporterRequest.ProtoReflect.Descriptor instead.
func (*GetReportsByReporterRequest) GetCursor ¶
func (x *GetReportsByReporterRequest) GetCursor() *PageCursor
func (*GetReportsByReporterRequest) GetReportStatus ¶
func (x *GetReportsByReporterRequest) GetReportStatus() ReportStatusEnum
func (*GetReportsByReporterRequest) GetReporterId ¶
func (x *GetReportsByReporterRequest) GetReporterId() string
func (*GetReportsByReporterRequest) ProtoMessage ¶
func (*GetReportsByReporterRequest) ProtoMessage()
func (*GetReportsByReporterRequest) ProtoReflect ¶
func (x *GetReportsByReporterRequest) ProtoReflect() protoreflect.Message
func (*GetReportsByReporterRequest) Reset ¶
func (x *GetReportsByReporterRequest) Reset()
func (*GetReportsByReporterRequest) String ¶
func (x *GetReportsByReporterRequest) String() string
type GetReportsByReporterResponse ¶
type GetReportsByReporterResponse struct { Reports []*Report `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"` Info *PageInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*GetReportsByReporterResponse) Descriptor
deprecated
func (*GetReportsByReporterResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReportsByReporterResponse.ProtoReflect.Descriptor instead.
func (*GetReportsByReporterResponse) GetInfo ¶
func (x *GetReportsByReporterResponse) GetInfo() *PageInfo
func (*GetReportsByReporterResponse) GetReports ¶
func (x *GetReportsByReporterResponse) GetReports() []*Report
func (*GetReportsByReporterResponse) ProtoMessage ¶
func (*GetReportsByReporterResponse) ProtoMessage()
func (*GetReportsByReporterResponse) ProtoReflect ¶
func (x *GetReportsByReporterResponse) ProtoReflect() protoreflect.Message
func (*GetReportsByReporterResponse) Reset ¶
func (x *GetReportsByReporterResponse) Reset()
func (*GetReportsByReporterResponse) String ¶
func (x *GetReportsByReporterResponse) String() string
type GetReportsCountRequest ¶
type GetReportsCountRequest struct { Status ReportStatusEnum `protobuf:"varint,1,opt,name=status,proto3,enum=report_api.v1.ReportStatusEnum" json:"status,omitempty"` // contains filtered or unexported fields }
func (*GetReportsCountRequest) Descriptor
deprecated
func (*GetReportsCountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReportsCountRequest.ProtoReflect.Descriptor instead.
func (*GetReportsCountRequest) GetStatus ¶
func (x *GetReportsCountRequest) GetStatus() ReportStatusEnum
func (*GetReportsCountRequest) ProtoMessage ¶
func (*GetReportsCountRequest) ProtoMessage()
func (*GetReportsCountRequest) ProtoReflect ¶
func (x *GetReportsCountRequest) ProtoReflect() protoreflect.Message
func (*GetReportsCountRequest) Reset ¶
func (x *GetReportsCountRequest) Reset()
func (*GetReportsCountRequest) String ¶
func (x *GetReportsCountRequest) String() string
type GetReportsCountResponse ¶
type GetReportsCountResponse struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*GetReportsCountResponse) Descriptor
deprecated
func (*GetReportsCountResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReportsCountResponse.ProtoReflect.Descriptor instead.
func (*GetReportsCountResponse) GetCount ¶
func (x *GetReportsCountResponse) GetCount() int64
func (*GetReportsCountResponse) ProtoMessage ¶
func (*GetReportsCountResponse) ProtoMessage()
func (*GetReportsCountResponse) ProtoReflect ¶
func (x *GetReportsCountResponse) ProtoReflect() protoreflect.Message
func (*GetReportsCountResponse) Reset ¶
func (x *GetReportsCountResponse) Reset()
func (*GetReportsCountResponse) String ¶
func (x *GetReportsCountResponse) String() string
type GetReportsRequest ¶
type GetReportsRequest struct { Entity ReportEntityEnum `protobuf:"varint,1,opt,name=entity,proto3,enum=report_api.v1.ReportEntityEnum" json:"entity,omitempty"` ReportStatus ReportStatusEnum `` /* 134-byte string literal not displayed */ Cursor *PageCursor `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"` // contains filtered or unexported fields }
func (*GetReportsRequest) Descriptor
deprecated
func (*GetReportsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReportsRequest.ProtoReflect.Descriptor instead.
func (*GetReportsRequest) GetCursor ¶
func (x *GetReportsRequest) GetCursor() *PageCursor
func (*GetReportsRequest) GetEntity ¶
func (x *GetReportsRequest) GetEntity() ReportEntityEnum
func (*GetReportsRequest) GetReportStatus ¶
func (x *GetReportsRequest) GetReportStatus() ReportStatusEnum
func (*GetReportsRequest) ProtoMessage ¶
func (*GetReportsRequest) ProtoMessage()
func (*GetReportsRequest) ProtoReflect ¶
func (x *GetReportsRequest) ProtoReflect() protoreflect.Message
func (*GetReportsRequest) Reset ¶
func (x *GetReportsRequest) Reset()
func (*GetReportsRequest) String ¶
func (x *GetReportsRequest) String() string
type GetReportsResponse ¶
type GetReportsResponse struct { ReportedEntities []*ReportedEntity `protobuf:"bytes,1,rep,name=reported_entities,json=reportedEntities,proto3" json:"reported_entities,omitempty"` Info *PageInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*GetReportsResponse) Descriptor
deprecated
func (*GetReportsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReportsResponse.ProtoReflect.Descriptor instead.
func (*GetReportsResponse) GetInfo ¶
func (x *GetReportsResponse) GetInfo() *PageInfo
func (*GetReportsResponse) GetReportedEntities ¶
func (x *GetReportsResponse) GetReportedEntities() []*ReportedEntity
func (*GetReportsResponse) ProtoMessage ¶
func (*GetReportsResponse) ProtoMessage()
func (*GetReportsResponse) ProtoReflect ¶
func (x *GetReportsResponse) ProtoReflect() protoreflect.Message
func (*GetReportsResponse) Reset ¶
func (x *GetReportsResponse) Reset()
func (*GetReportsResponse) String ¶
func (x *GetReportsResponse) String() string
type PageCursor ¶
type PageCursor struct { LastId string `protobuf:"bytes,1,opt,name=lastId,proto3" json:"lastId,omitempty"` Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Dir PageDir `protobuf:"varint,3,opt,name=dir,proto3,enum=report_api.v1.PageDir" json:"dir,omitempty"` // contains filtered or unexported fields }
func (*PageCursor) Descriptor
deprecated
func (*PageCursor) Descriptor() ([]byte, []int)
Deprecated: Use PageCursor.ProtoReflect.Descriptor instead.
func (*PageCursor) GetDir ¶
func (x *PageCursor) GetDir() PageDir
func (*PageCursor) GetLastId ¶
func (x *PageCursor) GetLastId() string
func (*PageCursor) GetLimit ¶
func (x *PageCursor) GetLimit() uint32
func (*PageCursor) ProtoMessage ¶
func (*PageCursor) ProtoMessage()
func (*PageCursor) ProtoReflect ¶
func (x *PageCursor) ProtoReflect() protoreflect.Message
func (*PageCursor) Reset ¶
func (x *PageCursor) Reset()
func (*PageCursor) String ¶
func (x *PageCursor) String() string
type PageDir ¶
type PageDir int32
func (PageDir) Descriptor ¶
func (PageDir) Descriptor() protoreflect.EnumDescriptor
func (PageDir) EnumDescriptor
deprecated
func (PageDir) Number ¶
func (x PageDir) Number() protoreflect.EnumNumber
func (PageDir) Type ¶
func (PageDir) Type() protoreflect.EnumType
type PageInfo ¶
type PageInfo struct { FirstId *string `protobuf:"bytes,1,opt,name=first_id,json=firstId,proto3,oneof" json:"first_id,omitempty"` LastId *string `protobuf:"bytes,2,opt,name=last_id,json=lastId,proto3,oneof" json:"last_id,omitempty"` HasPrev bool `protobuf:"varint,3,opt,name=has_prev,json=hasPrev,proto3" json:"has_prev,omitempty"` HasNext bool `protobuf:"varint,4,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"` Length uint32 `protobuf:"varint,5,opt,name=length,proto3" json:"length,omitempty"` // contains filtered or unexported fields }
func (*PageInfo) Descriptor
deprecated
func (*PageInfo) GetFirstId ¶
func (*PageInfo) GetHasNext ¶
func (*PageInfo) GetHasPrev ¶
func (*PageInfo) ProtoMessage ¶
func (*PageInfo) ProtoMessage()
func (*PageInfo) ProtoReflect ¶
func (x *PageInfo) ProtoReflect() protoreflect.Message
type Report ¶
type Report struct { Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` EntityId string `protobuf:"bytes,2,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` EntityType ReportEntityEnum `` /* 128-byte string literal not displayed */ Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` Status ReportStatusEnum `protobuf:"varint,6,opt,name=status,proto3,enum=report_api.v1.ReportStatusEnum" json:"status,omitempty"` ReporterId *string `protobuf:"bytes,7,opt,name=reporter_id,json=reporterId,proto3,oneof" json:"reporter_id,omitempty"` Reporter *Reporter `protobuf:"bytes,8,opt,name=reporter,proto3,oneof" json:"reporter,omitempty"` CreatedAt *string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Report) Descriptor
deprecated
func (*Report) GetCreatedAt ¶
func (*Report) GetDescription ¶
func (*Report) GetEntityId ¶
func (*Report) GetEntityType ¶
func (x *Report) GetEntityType() ReportEntityEnum
func (*Report) GetReporter ¶
func (*Report) GetReporterId ¶
func (*Report) GetStatus ¶
func (x *Report) GetStatus() ReportStatusEnum
func (*Report) ProtoMessage ¶
func (*Report) ProtoMessage()
func (*Report) ProtoReflect ¶
func (x *Report) ProtoReflect() protoreflect.Message
type ReportAPIClient ¶
type ReportAPIClient interface { CreateReport(ctx context.Context, in *CreateReportRequest, opts ...grpc.CallOption) (*Empty, error) CreateReportReason(ctx context.Context, in *CreateReportReasonRequest, opts ...grpc.CallOption) (*Empty, error) GetReports(ctx context.Context, in *GetReportsRequest, opts ...grpc.CallOption) (*GetReportsResponse, error) GetActionsForEntity(ctx context.Context, in *GetActionsForEntityRequest, opts ...grpc.CallOption) (*GetActionsForEntityResponse, error) GetActionsByModerator(ctx context.Context, in *GetActionsByModeratorRequest, opts ...grpc.CallOption) (*GetActionsByModeratorResponse, error) GetReportReasons(ctx context.Context, in *GetReportReasonsRequest, opts ...grpc.CallOption) (*GetReportReasonsResponse, error) GetReportsByReporter(ctx context.Context, in *GetReportsByReporterRequest, opts ...grpc.CallOption) (*GetReportsByReporterResponse, error) UpdateReportStatus(ctx context.Context, in *UpdateReportStatusRequest, opts ...grpc.CallOption) (*Empty, error) GetReportsCount(ctx context.Context, in *GetReportsCountRequest, opts ...grpc.CallOption) (*GetReportsCountResponse, error) GetActionReasons(ctx context.Context, in *GetActionReasonsRequest, opts ...grpc.CallOption) (*GetActionReasonsResponse, error) }
ReportAPIClient is the client API for ReportAPI 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 NewReportAPIClient ¶
func NewReportAPIClient(cc grpc.ClientConnInterface) ReportAPIClient
type ReportAPIServer ¶
type ReportAPIServer interface { CreateReport(context.Context, *CreateReportRequest) (*Empty, error) CreateReportReason(context.Context, *CreateReportReasonRequest) (*Empty, error) GetReports(context.Context, *GetReportsRequest) (*GetReportsResponse, error) GetActionsForEntity(context.Context, *GetActionsForEntityRequest) (*GetActionsForEntityResponse, error) GetActionsByModerator(context.Context, *GetActionsByModeratorRequest) (*GetActionsByModeratorResponse, error) GetReportReasons(context.Context, *GetReportReasonsRequest) (*GetReportReasonsResponse, error) GetReportsByReporter(context.Context, *GetReportsByReporterRequest) (*GetReportsByReporterResponse, error) UpdateReportStatus(context.Context, *UpdateReportStatusRequest) (*Empty, error) GetReportsCount(context.Context, *GetReportsCountRequest) (*GetReportsCountResponse, error) GetActionReasons(context.Context, *GetActionReasonsRequest) (*GetActionReasonsResponse, error) // contains filtered or unexported methods }
ReportAPIServer is the server API for ReportAPI service. All implementations must embed UnimplementedReportAPIServer for forward compatibility
type ReportAction ¶
type ReportAction struct { ModeratorId string `protobuf:"bytes,1,opt,name=moderator_id,json=moderatorId,proto3" json:"moderator_id,omitempty"` Action ReportActionEnum `protobuf:"varint,2,opt,name=action,proto3,enum=report_api.v1.ReportActionEnum" json:"action,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` ReportId *string `protobuf:"bytes,5,opt,name=report_id,json=reportId,proto3,oneof" json:"report_id,omitempty"` EntityId *string `protobuf:"bytes,6,opt,name=entity_id,json=entityId,proto3,oneof" json:"entity_id,omitempty"` // contains filtered or unexported fields }
func (*ReportAction) Descriptor
deprecated
func (*ReportAction) Descriptor() ([]byte, []int)
Deprecated: Use ReportAction.ProtoReflect.Descriptor instead.
func (*ReportAction) GetAction ¶
func (x *ReportAction) GetAction() ReportActionEnum
func (*ReportAction) GetCreatedAt ¶
func (x *ReportAction) GetCreatedAt() string
func (*ReportAction) GetDescription ¶
func (x *ReportAction) GetDescription() string
func (*ReportAction) GetEntityId ¶
func (x *ReportAction) GetEntityId() string
func (*ReportAction) GetModeratorId ¶
func (x *ReportAction) GetModeratorId() string
func (*ReportAction) GetReportId ¶
func (x *ReportAction) GetReportId() string
func (*ReportAction) ProtoMessage ¶
func (*ReportAction) ProtoMessage()
func (*ReportAction) ProtoReflect ¶
func (x *ReportAction) ProtoReflect() protoreflect.Message
func (*ReportAction) Reset ¶
func (x *ReportAction) Reset()
func (*ReportAction) String ¶
func (x *ReportAction) String() string
type ReportActionEnum ¶
type ReportActionEnum int32
const ( ReportActionEnum_Ban ReportActionEnum = 0 ReportActionEnum_Delete ReportActionEnum = 1 ReportActionEnum_NotExplicit ReportActionEnum = 2 )
func (ReportActionEnum) Descriptor ¶
func (ReportActionEnum) Descriptor() protoreflect.EnumDescriptor
func (ReportActionEnum) Enum ¶
func (x ReportActionEnum) Enum() *ReportActionEnum
func (ReportActionEnum) EnumDescriptor
deprecated
func (ReportActionEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReportActionEnum.Descriptor instead.
func (ReportActionEnum) Number ¶
func (x ReportActionEnum) Number() protoreflect.EnumNumber
func (ReportActionEnum) String ¶
func (x ReportActionEnum) String() string
func (ReportActionEnum) Type ¶
func (ReportActionEnum) Type() protoreflect.EnumType
type ReportEntityEnum ¶
type ReportEntityEnum int32
const ( ReportEntityEnum_Cricle ReportEntityEnum = 0 ReportEntityEnum_Chat ReportEntityEnum = 1 ReportEntityEnum_Post ReportEntityEnum = 2 ReportEntityEnum_Comment ReportEntityEnum = 3 ReportEntityEnum_User ReportEntityEnum = 4 ReportEntityEnum_Collection ReportEntityEnum = 5 ReportEntityEnum_Slice ReportEntityEnum = 6 ReportEntityEnum_Message ReportEntityEnum = 7 ReportEntityEnum_All ReportEntityEnum = 8 )
func (ReportEntityEnum) Descriptor ¶
func (ReportEntityEnum) Descriptor() protoreflect.EnumDescriptor
func (ReportEntityEnum) Enum ¶
func (x ReportEntityEnum) Enum() *ReportEntityEnum
func (ReportEntityEnum) EnumDescriptor
deprecated
func (ReportEntityEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReportEntityEnum.Descriptor instead.
func (ReportEntityEnum) Number ¶
func (x ReportEntityEnum) Number() protoreflect.EnumNumber
func (ReportEntityEnum) String ¶
func (x ReportEntityEnum) String() string
func (ReportEntityEnum) Type ¶
func (ReportEntityEnum) Type() protoreflect.EnumType
type ReportReason ¶
type ReportReason struct { Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` EntityType ReportEntityEnum `` /* 128-byte string literal not displayed */ CreatedAt *string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*ReportReason) Descriptor
deprecated
func (*ReportReason) Descriptor() ([]byte, []int)
Deprecated: Use ReportReason.ProtoReflect.Descriptor instead.
func (*ReportReason) GetCreatedAt ¶
func (x *ReportReason) GetCreatedAt() string
func (*ReportReason) GetEntityType ¶
func (x *ReportReason) GetEntityType() ReportEntityEnum
func (*ReportReason) GetId ¶
func (x *ReportReason) GetId() string
func (*ReportReason) GetReason ¶
func (x *ReportReason) GetReason() string
func (*ReportReason) ProtoMessage ¶
func (*ReportReason) ProtoMessage()
func (*ReportReason) ProtoReflect ¶
func (x *ReportReason) ProtoReflect() protoreflect.Message
func (*ReportReason) Reset ¶
func (x *ReportReason) Reset()
func (*ReportReason) String ¶
func (x *ReportReason) String() string
type ReportStatusEnum ¶
type ReportStatusEnum int32
const ( ReportStatusEnum_Unresolved ReportStatusEnum = 0 ReportStatusEnum_Pending ReportStatusEnum = 1 ReportStatusEnum_Resolved ReportStatusEnum = 2 ReportStatusEnum_AllStatus ReportStatusEnum = 3 )
func (ReportStatusEnum) Descriptor ¶
func (ReportStatusEnum) Descriptor() protoreflect.EnumDescriptor
func (ReportStatusEnum) Enum ¶
func (x ReportStatusEnum) Enum() *ReportStatusEnum
func (ReportStatusEnum) EnumDescriptor
deprecated
func (ReportStatusEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReportStatusEnum.Descriptor instead.
func (ReportStatusEnum) Number ¶
func (x ReportStatusEnum) Number() protoreflect.EnumNumber
func (ReportStatusEnum) String ¶
func (x ReportStatusEnum) String() string
func (ReportStatusEnum) Type ¶
func (ReportStatusEnum) Type() protoreflect.EnumType
type ReportedEntity ¶
type ReportedEntity struct { EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` Entity ReportEntityEnum `protobuf:"varint,2,opt,name=entity,proto3,enum=report_api.v1.ReportEntityEnum" json:"entity,omitempty"` Reports []*Report `protobuf:"bytes,3,rep,name=reports,proto3" json:"reports,omitempty"` ReportCount int32 `protobuf:"varint,4,opt,name=report_count,json=reportCount,proto3" json:"report_count,omitempty"` // contains filtered or unexported fields }
func (*ReportedEntity) Descriptor
deprecated
func (*ReportedEntity) Descriptor() ([]byte, []int)
Deprecated: Use ReportedEntity.ProtoReflect.Descriptor instead.
func (*ReportedEntity) GetEntity ¶
func (x *ReportedEntity) GetEntity() ReportEntityEnum
func (*ReportedEntity) GetEntityId ¶
func (x *ReportedEntity) GetEntityId() string
func (*ReportedEntity) GetReportCount ¶
func (x *ReportedEntity) GetReportCount() int32
func (*ReportedEntity) GetReports ¶
func (x *ReportedEntity) GetReports() []*Report
func (*ReportedEntity) ProtoMessage ¶
func (*ReportedEntity) ProtoMessage()
func (*ReportedEntity) ProtoReflect ¶
func (x *ReportedEntity) ProtoReflect() protoreflect.Message
func (*ReportedEntity) Reset ¶
func (x *ReportedEntity) Reset()
func (*ReportedEntity) String ¶
func (x *ReportedEntity) String() string
type Reporter ¶
type Reporter struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` FullName string `protobuf:"bytes,2,opt,name=fullName,proto3" json:"fullName,omitempty"` Age int64 `protobuf:"varint,6,opt,name=age,proto3" json:"age,omitempty"` ProfileImageUrl string `protobuf:"bytes,7,opt,name=profileImageUrl,proto3" json:"profileImageUrl,omitempty"` Email string `protobuf:"bytes,9,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,10,opt,name=phone,proto3" json:"phone,omitempty"` IsVerified bool `protobuf:"varint,12,opt,name=isVerified,proto3" json:"isVerified,omitempty"` IsBanned bool `protobuf:"varint,13,opt,name=isBanned,proto3" json:"isBanned,omitempty"` // contains filtered or unexported fields }
func (*Reporter) Descriptor
deprecated
func (*Reporter) GetFullName ¶
func (*Reporter) GetIsBanned ¶
func (*Reporter) GetIsVerified ¶
func (*Reporter) GetProfileImageUrl ¶
func (*Reporter) GetUsername ¶
func (*Reporter) ProtoMessage ¶
func (*Reporter) ProtoMessage()
func (*Reporter) ProtoReflect ¶
func (x *Reporter) ProtoReflect() protoreflect.Message
type UnimplementedReportAPIServer ¶
type UnimplementedReportAPIServer struct { }
UnimplementedReportAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedReportAPIServer) CreateReport ¶
func (UnimplementedReportAPIServer) CreateReport(context.Context, *CreateReportRequest) (*Empty, error)
func (UnimplementedReportAPIServer) CreateReportReason ¶
func (UnimplementedReportAPIServer) CreateReportReason(context.Context, *CreateReportReasonRequest) (*Empty, error)
func (UnimplementedReportAPIServer) GetActionReasons ¶
func (UnimplementedReportAPIServer) GetActionReasons(context.Context, *GetActionReasonsRequest) (*GetActionReasonsResponse, error)
func (UnimplementedReportAPIServer) GetActionsByModerator ¶
func (UnimplementedReportAPIServer) GetActionsByModerator(context.Context, *GetActionsByModeratorRequest) (*GetActionsByModeratorResponse, error)
func (UnimplementedReportAPIServer) GetActionsForEntity ¶
func (UnimplementedReportAPIServer) GetActionsForEntity(context.Context, *GetActionsForEntityRequest) (*GetActionsForEntityResponse, error)
func (UnimplementedReportAPIServer) GetReportReasons ¶
func (UnimplementedReportAPIServer) GetReportReasons(context.Context, *GetReportReasonsRequest) (*GetReportReasonsResponse, error)
func (UnimplementedReportAPIServer) GetReports ¶
func (UnimplementedReportAPIServer) GetReports(context.Context, *GetReportsRequest) (*GetReportsResponse, error)
func (UnimplementedReportAPIServer) GetReportsByReporter ¶
func (UnimplementedReportAPIServer) GetReportsByReporter(context.Context, *GetReportsByReporterRequest) (*GetReportsByReporterResponse, error)
func (UnimplementedReportAPIServer) GetReportsCount ¶
func (UnimplementedReportAPIServer) GetReportsCount(context.Context, *GetReportsCountRequest) (*GetReportsCountResponse, error)
func (UnimplementedReportAPIServer) UpdateReportStatus ¶
func (UnimplementedReportAPIServer) UpdateReportStatus(context.Context, *UpdateReportStatusRequest) (*Empty, error)
type UnsafeReportAPIServer ¶
type UnsafeReportAPIServer interface {
// contains filtered or unexported methods
}
UnsafeReportAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReportAPIServer will result in compilation errors.
type UpdateReportStatusRequest ¶
type UpdateReportStatusRequest struct { ReportId string `protobuf:"bytes,1,opt,name=report_id,json=reportId,proto3" json:"report_id,omitempty"` Status ReportStatusEnum `protobuf:"varint,2,opt,name=status,proto3,enum=report_api.v1.ReportStatusEnum" json:"status,omitempty"` // contains filtered or unexported fields }
func (*UpdateReportStatusRequest) Descriptor
deprecated
func (*UpdateReportStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateReportStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateReportStatusRequest) GetReportId ¶
func (x *UpdateReportStatusRequest) GetReportId() string
func (*UpdateReportStatusRequest) GetStatus ¶
func (x *UpdateReportStatusRequest) GetStatus() ReportStatusEnum
func (*UpdateReportStatusRequest) ProtoMessage ¶
func (*UpdateReportStatusRequest) ProtoMessage()
func (*UpdateReportStatusRequest) ProtoReflect ¶
func (x *UpdateReportStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdateReportStatusRequest) Reset ¶
func (x *UpdateReportStatusRequest) Reset()
func (*UpdateReportStatusRequest) String ¶
func (x *UpdateReportStatusRequest) String() string