v1

package
v0.2.165 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

View Source
var (
	PageDir_name = map[int32]string{
		0: "Asc",
		1: "Desc",
	}
	PageDir_value = map[string]int32{
		"Asc":  0,
		"Desc": 1,
	}
)

Enum value maps for PageDir.

View Source
var File_report_api_report_v1_report_proto protoreflect.FileDescriptor
View Source
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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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

func (x *GetActionsByModeratorRequest) Reset()

func (*GetActionsByModeratorRequest) 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 (*GetActionsByModeratorResponse) ProtoMessage

func (*GetActionsByModeratorResponse) ProtoMessage()

func (*GetActionsByModeratorResponse) ProtoReflect

func (*GetActionsByModeratorResponse) Reset

func (x *GetActionsByModeratorResponse) Reset()

func (*GetActionsByModeratorResponse) 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 (*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 (*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 (*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 (*GetReportsByReporterResponse) Reset

func (x *GetReportsByReporterResponse) Reset()

func (*GetReportsByReporterResponse) 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 (*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
const (
	PageDir_Asc  PageDir = 0
	PageDir_Desc PageDir = 1
)

func (PageDir) Descriptor

func (PageDir) Descriptor() protoreflect.EnumDescriptor

func (PageDir) Enum

func (x PageDir) Enum() *PageDir

func (PageDir) EnumDescriptor deprecated

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

Deprecated: Use PageDir.Descriptor instead.

func (PageDir) Number

func (x PageDir) Number() protoreflect.EnumNumber

func (PageDir) String

func (x PageDir) String() string

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

Deprecated: Use PageInfo.ProtoReflect.Descriptor instead.

func (*PageInfo) GetFirstId

func (x *PageInfo) GetFirstId() string

func (*PageInfo) GetHasNext

func (x *PageInfo) GetHasNext() bool

func (*PageInfo) GetHasPrev

func (x *PageInfo) GetHasPrev() bool

func (*PageInfo) GetLastId

func (x *PageInfo) GetLastId() string

func (*PageInfo) GetLength

func (x *PageInfo) GetLength() uint32

func (*PageInfo) ProtoMessage

func (*PageInfo) ProtoMessage()

func (*PageInfo) ProtoReflect

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

func (*PageInfo) Reset

func (x *PageInfo) Reset()

func (*PageInfo) String

func (x *PageInfo) String() string

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

Deprecated: Use Report.ProtoReflect.Descriptor instead.

func (*Report) GetCreatedAt

func (x *Report) GetCreatedAt() string

func (*Report) GetDescription

func (x *Report) GetDescription() string

func (*Report) GetEntityId

func (x *Report) GetEntityId() string

func (*Report) GetEntityType

func (x *Report) GetEntityType() ReportEntityEnum

func (*Report) GetId

func (x *Report) GetId() string

func (*Report) GetReason

func (x *Report) GetReason() string

func (*Report) GetReporter

func (x *Report) GetReporter() *Reporter

func (*Report) GetReporterId

func (x *Report) GetReporterId() string

func (*Report) GetStatus

func (x *Report) GetStatus() ReportStatusEnum

func (*Report) ProtoMessage

func (*Report) ProtoMessage()

func (*Report) ProtoReflect

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

func (*Report) Reset

func (x *Report) Reset()

func (*Report) String

func (x *Report) String() string

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

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

func (ReportActionEnum) EnumDescriptor deprecated

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

Deprecated: Use ReportActionEnum.Descriptor instead.

func (ReportActionEnum) Number

func (ReportActionEnum) String

func (x ReportActionEnum) String() string

func (ReportActionEnum) Type

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

func (ReportEntityEnum) EnumDescriptor deprecated

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

Deprecated: Use ReportEntityEnum.Descriptor instead.

func (ReportEntityEnum) Number

func (ReportEntityEnum) String

func (x ReportEntityEnum) String() string

func (ReportEntityEnum) Type

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

func (ReportStatusEnum) EnumDescriptor deprecated

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

Deprecated: Use ReportStatusEnum.Descriptor instead.

func (ReportStatusEnum) Number

func (ReportStatusEnum) String

func (x ReportStatusEnum) String() string

func (ReportStatusEnum) Type

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

Deprecated: Use Reporter.ProtoReflect.Descriptor instead.

func (*Reporter) GetAge

func (x *Reporter) GetAge() int64

func (*Reporter) GetEmail

func (x *Reporter) GetEmail() string

func (*Reporter) GetFullName

func (x *Reporter) GetFullName() string

func (*Reporter) GetIsBanned

func (x *Reporter) GetIsBanned() bool

func (*Reporter) GetIsVerified

func (x *Reporter) GetIsVerified() bool

func (*Reporter) GetPhone

func (x *Reporter) GetPhone() string

func (*Reporter) GetProfileImageUrl

func (x *Reporter) GetProfileImageUrl() string

func (*Reporter) GetUsername

func (x *Reporter) GetUsername() string

func (*Reporter) ProtoMessage

func (*Reporter) ProtoMessage()

func (*Reporter) ProtoReflect

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

func (*Reporter) Reset

func (x *Reporter) Reset()

func (*Reporter) String

func (x *Reporter) String() string

type UnimplementedReportAPIServer

type UnimplementedReportAPIServer struct {
}

UnimplementedReportAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedReportAPIServer) CreateReport

func (UnimplementedReportAPIServer) CreateReportReason

func (UnimplementedReportAPIServer) GetActionReasons

func (UnimplementedReportAPIServer) GetReportReasons

func (UnimplementedReportAPIServer) GetReports

func (UnimplementedReportAPIServer) GetReportsCount

func (UnimplementedReportAPIServer) UpdateReportStatus

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 (*UpdateReportStatusRequest) ProtoMessage

func (*UpdateReportStatusRequest) ProtoMessage()

func (*UpdateReportStatusRequest) ProtoReflect

func (*UpdateReportStatusRequest) Reset

func (x *UpdateReportStatusRequest) Reset()

func (*UpdateReportStatusRequest) String

func (x *UpdateReportStatusRequest) String() string

Directories

Path Synopsis
Package report_mock is a generated GoMock package.
Package report_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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