permission

package
v0.0.0-...-66adcdc Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RoleUpdateMessage_ChangeType_name = map[int32]string{
		0: "CREATE",
		1: "DELETE",
		2: "MODIFY",
	}
	RoleUpdateMessage_ChangeType_value = map[string]int32{
		"CREATE": 0,
		"DELETE": 1,
		"MODIFY": 2,
	}
)

Enum value maps for RoleUpdateMessage_ChangeType.

View Source
var (
	PlayerRolesUpdateMessage_ChangeType_name = map[int32]string{
		0: "ADD",
		1: "REMOVE",
	}
	PlayerRolesUpdateMessage_ChangeType_value = map[string]int32{
		"ADD":    0,
		"REMOVE": 1,
	}
)

Enum value maps for PlayerRolesUpdateMessage_ChangeType.

View Source
var File_permission_messages_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type PlayerRolesUpdateMessage

type PlayerRolesUpdateMessage struct {
	ChangeType PlayerRolesUpdateMessage_ChangeType `` /* 160-byte string literal not displayed */
	PlayerId   string                              `protobuf:"bytes,2,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	RoleId     string                              `protobuf:"bytes,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PlayerRolesUpdateMessage) Descriptor deprecated

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

Deprecated: Use PlayerRolesUpdateMessage.ProtoReflect.Descriptor instead.

func (*PlayerRolesUpdateMessage) GetChangeType

func (*PlayerRolesUpdateMessage) GetPlayerId

func (x *PlayerRolesUpdateMessage) GetPlayerId() string

func (*PlayerRolesUpdateMessage) GetRoleId

func (x *PlayerRolesUpdateMessage) GetRoleId() string

func (*PlayerRolesUpdateMessage) ProtoMessage

func (*PlayerRolesUpdateMessage) ProtoMessage()

func (*PlayerRolesUpdateMessage) ProtoReflect

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

func (*PlayerRolesUpdateMessage) Reset

func (x *PlayerRolesUpdateMessage) Reset()

func (*PlayerRolesUpdateMessage) String

func (x *PlayerRolesUpdateMessage) String() string

type PlayerRolesUpdateMessage_ChangeType

type PlayerRolesUpdateMessage_ChangeType int32
const (
	PlayerRolesUpdateMessage_ADD    PlayerRolesUpdateMessage_ChangeType = 0
	PlayerRolesUpdateMessage_REMOVE PlayerRolesUpdateMessage_ChangeType = 1
)

func (PlayerRolesUpdateMessage_ChangeType) Descriptor

func (PlayerRolesUpdateMessage_ChangeType) Enum

func (PlayerRolesUpdateMessage_ChangeType) EnumDescriptor deprecated

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

Deprecated: Use PlayerRolesUpdateMessage_ChangeType.Descriptor instead.

func (PlayerRolesUpdateMessage_ChangeType) Number

func (PlayerRolesUpdateMessage_ChangeType) String

func (PlayerRolesUpdateMessage_ChangeType) Type

type RoleUpdateMessage

type RoleUpdateMessage struct {
	ChangeType RoleUpdateMessage_ChangeType `` /* 153-byte string literal not displayed */
	// role either the deleted, created or updated role
	Role *permission.Role `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleUpdateMessage) Descriptor deprecated

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

Deprecated: Use RoleUpdateMessage.ProtoReflect.Descriptor instead.

func (*RoleUpdateMessage) GetChangeType

func (*RoleUpdateMessage) GetRole

func (x *RoleUpdateMessage) GetRole() *permission.Role

func (*RoleUpdateMessage) ProtoMessage

func (*RoleUpdateMessage) ProtoMessage()

func (*RoleUpdateMessage) ProtoReflect

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

func (*RoleUpdateMessage) Reset

func (x *RoleUpdateMessage) Reset()

func (*RoleUpdateMessage) String

func (x *RoleUpdateMessage) String() string

type RoleUpdateMessage_ChangeType

type RoleUpdateMessage_ChangeType int32
const (
	RoleUpdateMessage_CREATE RoleUpdateMessage_ChangeType = 0
	RoleUpdateMessage_DELETE RoleUpdateMessage_ChangeType = 1
	RoleUpdateMessage_MODIFY RoleUpdateMessage_ChangeType = 2
)

func (RoleUpdateMessage_ChangeType) Descriptor

func (RoleUpdateMessage_ChangeType) Enum

func (RoleUpdateMessage_ChangeType) EnumDescriptor deprecated

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

Deprecated: Use RoleUpdateMessage_ChangeType.Descriptor instead.

func (RoleUpdateMessage_ChangeType) Number

func (RoleUpdateMessage_ChangeType) String

func (RoleUpdateMessage_ChangeType) Type

Jump to

Keyboard shortcuts

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