mod_service

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ModActionType_name = map[int32]string{
		0: "MUTE",
		1: "SUSPEND_ACCOUNT",
		2: "SUSPEND_RATED_GAMES",
		3: "SUSPEND_GAMES",
		4: "RESET_RATINGS",
		5: "RESET_STATS",
		6: "RESET_STATS_AND_RATINGS",
		7: "REMOVE_CHAT",
		8: "DELETE_ACCOUNT",
	}
	ModActionType_value = map[string]int32{
		"MUTE":                    0,
		"SUSPEND_ACCOUNT":         1,
		"SUSPEND_RATED_GAMES":     2,
		"SUSPEND_GAMES":           3,
		"RESET_RATINGS":           4,
		"RESET_STATS":             5,
		"RESET_STATS_AND_RATINGS": 6,
		"REMOVE_CHAT":             7,
		"DELETE_ACCOUNT":          8,
	}
)

Enum value maps for ModActionType.

View Source
var (
	EmailType_name = map[int32]string{
		0: "DEFAULT",
		1: "CHEATING",
		2: "DELETION",
	}
	EmailType_value = map[string]int32{
		"DEFAULT":  0,
		"CHEATING": 1,
		"DELETION": 2,
	}
)

Enum value maps for EmailType.

View Source
var (
	NotoriousGameType_name = map[int32]string{
		0: "GOOD",
		1: "NO_PLAY",
		2: "SITTING",
		3: "SANDBAG",
		4: "NO_PLAY_DENIED_NUDGE",
		5: "EXCESSIVE_PHONIES",
	}
	NotoriousGameType_value = map[string]int32{
		"GOOD":                 0,
		"NO_PLAY":              1,
		"SITTING":              2,
		"SANDBAG":              3,
		"NO_PLAY_DENIED_NUDGE": 4,
		"EXCESSIVE_PHONIES":    5,
	}
)

Enum value maps for NotoriousGameType.

View Source
var File_proto_mod_service_mod_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EmailType

type EmailType int32
const (
	EmailType_DEFAULT  EmailType = 0
	EmailType_CHEATING EmailType = 1
	EmailType_DELETION EmailType = 2
)

func (EmailType) Descriptor

func (EmailType) Descriptor() protoreflect.EnumDescriptor

func (EmailType) Enum

func (x EmailType) Enum() *EmailType

func (EmailType) EnumDescriptor deprecated

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

Deprecated: Use EmailType.Descriptor instead.

func (EmailType) Number

func (x EmailType) Number() protoreflect.EnumNumber

func (EmailType) String

func (x EmailType) String() string

func (EmailType) Type

type GetActionsRequest

type GetActionsRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetActionsRequest) Descriptor deprecated

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

Deprecated: Use GetActionsRequest.ProtoReflect.Descriptor instead.

func (*GetActionsRequest) GetUserId

func (x *GetActionsRequest) GetUserId() string

func (*GetActionsRequest) ProtoMessage

func (*GetActionsRequest) ProtoMessage()

func (*GetActionsRequest) ProtoReflect

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

func (*GetActionsRequest) Reset

func (x *GetActionsRequest) Reset()

func (*GetActionsRequest) String

func (x *GetActionsRequest) String() string

type GetNotorietyReportRequest

type GetNotorietyReportRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNotorietyReportRequest) Descriptor deprecated

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

Deprecated: Use GetNotorietyReportRequest.ProtoReflect.Descriptor instead.

func (*GetNotorietyReportRequest) GetUserId

func (x *GetNotorietyReportRequest) GetUserId() string

func (*GetNotorietyReportRequest) ProtoMessage

func (*GetNotorietyReportRequest) ProtoMessage()

func (*GetNotorietyReportRequest) ProtoReflect

func (*GetNotorietyReportRequest) Reset

func (x *GetNotorietyReportRequest) Reset()

func (*GetNotorietyReportRequest) String

func (x *GetNotorietyReportRequest) String() string

type ModAction

type ModAction struct {
	UserId        string                 `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Type          ModActionType          `protobuf:"varint,2,opt,name=type,proto3,enum=mod_service.ModActionType" json:"type,omitempty"`
	Duration      int32                  `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
	StartTime     *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime       *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	RemovedTime   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=removed_time,json=removedTime,proto3" json:"removed_time,omitempty"`
	Channel       string                 `protobuf:"bytes,7,opt,name=channel,proto3" json:"channel,omitempty"`
	MessageId     string                 `protobuf:"bytes,8,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	ApplierUserId string                 `protobuf:"bytes,9,opt,name=applier_user_id,json=applierUserId,proto3" json:"applier_user_id,omitempty"`
	RemoverUserId string                 `protobuf:"bytes,10,opt,name=remover_user_id,json=removerUserId,proto3" json:"remover_user_id,omitempty"`
	ChatText      string                 `protobuf:"bytes,11,opt,name=chat_text,json=chatText,proto3" json:"chat_text,omitempty"`
	// Note: an optional note from the moderator.
	Note      string    `protobuf:"bytes,12,opt,name=note,proto3" json:"note,omitempty"`
	EmailType EmailType `protobuf:"varint,13,opt,name=email_type,json=emailType,proto3,enum=mod_service.EmailType" json:"email_type,omitempty"`
	// contains filtered or unexported fields
}

func (*ModAction) Descriptor deprecated

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

Deprecated: Use ModAction.ProtoReflect.Descriptor instead.

func (*ModAction) GetApplierUserId

func (x *ModAction) GetApplierUserId() string

func (*ModAction) GetChannel

func (x *ModAction) GetChannel() string

func (*ModAction) GetChatText

func (x *ModAction) GetChatText() string

func (*ModAction) GetDuration

func (x *ModAction) GetDuration() int32

func (*ModAction) GetEmailType

func (x *ModAction) GetEmailType() EmailType

func (*ModAction) GetEndTime

func (x *ModAction) GetEndTime() *timestamppb.Timestamp

func (*ModAction) GetMessageId

func (x *ModAction) GetMessageId() string

func (*ModAction) GetNote

func (x *ModAction) GetNote() string

func (*ModAction) GetRemovedTime

func (x *ModAction) GetRemovedTime() *timestamppb.Timestamp

func (*ModAction) GetRemoverUserId

func (x *ModAction) GetRemoverUserId() string

func (*ModAction) GetStartTime

func (x *ModAction) GetStartTime() *timestamppb.Timestamp

func (*ModAction) GetType

func (x *ModAction) GetType() ModActionType

func (*ModAction) GetUserId

func (x *ModAction) GetUserId() string

func (*ModAction) ProtoMessage

func (*ModAction) ProtoMessage()

func (*ModAction) ProtoReflect

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

func (*ModAction) Reset

func (x *ModAction) Reset()

func (*ModAction) String

func (x *ModAction) String() string

type ModActionResponse

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

func (*ModActionResponse) Descriptor deprecated

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

Deprecated: Use ModActionResponse.ProtoReflect.Descriptor instead.

func (*ModActionResponse) ProtoMessage

func (*ModActionResponse) ProtoMessage()

func (*ModActionResponse) ProtoReflect

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

func (*ModActionResponse) Reset

func (x *ModActionResponse) Reset()

func (*ModActionResponse) String

func (x *ModActionResponse) String() string

type ModActionType

type ModActionType int32
const (
	ModActionType_MUTE                    ModActionType = 0
	ModActionType_SUSPEND_ACCOUNT         ModActionType = 1
	ModActionType_SUSPEND_RATED_GAMES     ModActionType = 2
	ModActionType_SUSPEND_GAMES           ModActionType = 3
	ModActionType_RESET_RATINGS           ModActionType = 4
	ModActionType_RESET_STATS             ModActionType = 5
	ModActionType_RESET_STATS_AND_RATINGS ModActionType = 6
	ModActionType_REMOVE_CHAT             ModActionType = 7
	ModActionType_DELETE_ACCOUNT          ModActionType = 8
)

func (ModActionType) Descriptor

func (ModActionType) Enum

func (x ModActionType) Enum() *ModActionType

func (ModActionType) EnumDescriptor deprecated

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

Deprecated: Use ModActionType.Descriptor instead.

func (ModActionType) Number

func (ModActionType) String

func (x ModActionType) String() string

func (ModActionType) Type

type ModActionsList

type ModActionsList struct {
	Actions []*ModAction `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*ModActionsList) Descriptor deprecated

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

Deprecated: Use ModActionsList.ProtoReflect.Descriptor instead.

func (*ModActionsList) GetActions

func (x *ModActionsList) GetActions() []*ModAction

func (*ModActionsList) ProtoMessage

func (*ModActionsList) ProtoMessage()

func (*ModActionsList) ProtoReflect

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

func (*ModActionsList) Reset

func (x *ModActionsList) Reset()

func (*ModActionsList) String

func (x *ModActionsList) String() string

type ModActionsMap

type ModActionsMap struct {
	Actions map[string]*ModAction `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ModActionsMap) Descriptor deprecated

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

Deprecated: Use ModActionsMap.ProtoReflect.Descriptor instead.

func (*ModActionsMap) GetActions

func (x *ModActionsMap) GetActions() map[string]*ModAction

func (*ModActionsMap) ProtoMessage

func (*ModActionsMap) ProtoMessage()

func (*ModActionsMap) ProtoReflect

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

func (*ModActionsMap) Reset

func (x *ModActionsMap) Reset()

func (*ModActionsMap) String

func (x *ModActionsMap) String() string

type NotorietyReport

type NotorietyReport struct {
	Score int32            `protobuf:"varint,1,opt,name=score,proto3" json:"score,omitempty"`
	Games []*NotoriousGame `protobuf:"bytes,2,rep,name=games,proto3" json:"games,omitempty"`
	// contains filtered or unexported fields
}

func (*NotorietyReport) Descriptor deprecated

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

Deprecated: Use NotorietyReport.ProtoReflect.Descriptor instead.

func (*NotorietyReport) GetGames

func (x *NotorietyReport) GetGames() []*NotoriousGame

func (*NotorietyReport) GetScore

func (x *NotorietyReport) GetScore() int32

func (*NotorietyReport) ProtoMessage

func (*NotorietyReport) ProtoMessage()

func (*NotorietyReport) ProtoReflect

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

func (*NotorietyReport) Reset

func (x *NotorietyReport) Reset()

func (*NotorietyReport) String

func (x *NotorietyReport) String() string

type NotoriousGame

type NotoriousGame struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type      NotoriousGameType      `protobuf:"varint,2,opt,name=type,proto3,enum=mod_service.NotoriousGameType" json:"type,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*NotoriousGame) Descriptor deprecated

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

Deprecated: Use NotoriousGame.ProtoReflect.Descriptor instead.

func (*NotoriousGame) GetCreatedAt

func (x *NotoriousGame) GetCreatedAt() *timestamppb.Timestamp

func (*NotoriousGame) GetId

func (x *NotoriousGame) GetId() string

func (*NotoriousGame) GetType

func (x *NotoriousGame) GetType() NotoriousGameType

func (*NotoriousGame) ProtoMessage

func (*NotoriousGame) ProtoMessage()

func (*NotoriousGame) ProtoReflect

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

func (*NotoriousGame) Reset

func (x *NotoriousGame) Reset()

func (*NotoriousGame) String

func (x *NotoriousGame) String() string

type NotoriousGameType

type NotoriousGameType int32
const (
	NotoriousGameType_GOOD                 NotoriousGameType = 0
	NotoriousGameType_NO_PLAY              NotoriousGameType = 1
	NotoriousGameType_SITTING              NotoriousGameType = 2
	NotoriousGameType_SANDBAG              NotoriousGameType = 3
	NotoriousGameType_NO_PLAY_DENIED_NUDGE NotoriousGameType = 4
	NotoriousGameType_EXCESSIVE_PHONIES    NotoriousGameType = 5
)

func (NotoriousGameType) Descriptor

func (NotoriousGameType) Enum

func (NotoriousGameType) EnumDescriptor deprecated

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

Deprecated: Use NotoriousGameType.Descriptor instead.

func (NotoriousGameType) Number

func (NotoriousGameType) String

func (x NotoriousGameType) String() string

func (NotoriousGameType) Type

type ResetNotorietyRequest

type ResetNotorietyRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetNotorietyRequest) Descriptor deprecated

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

Deprecated: Use ResetNotorietyRequest.ProtoReflect.Descriptor instead.

func (*ResetNotorietyRequest) GetUserId

func (x *ResetNotorietyRequest) GetUserId() string

func (*ResetNotorietyRequest) ProtoMessage

func (*ResetNotorietyRequest) ProtoMessage()

func (*ResetNotorietyRequest) ProtoReflect

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

func (*ResetNotorietyRequest) Reset

func (x *ResetNotorietyRequest) Reset()

func (*ResetNotorietyRequest) String

func (x *ResetNotorietyRequest) String() string

type ResetNotorietyResponse

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

func (*ResetNotorietyResponse) Descriptor deprecated

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

Deprecated: Use ResetNotorietyResponse.ProtoReflect.Descriptor instead.

func (*ResetNotorietyResponse) ProtoMessage

func (*ResetNotorietyResponse) ProtoMessage()

func (*ResetNotorietyResponse) ProtoReflect

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

func (*ResetNotorietyResponse) Reset

func (x *ResetNotorietyResponse) Reset()

func (*ResetNotorietyResponse) String

func (x *ResetNotorietyResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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