adminv1

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Unlicense Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Role_name = map[int32]string{
		0: "ROLE_UNSPECIFIED",
		1: "ROLE_OWNER",
		2: "ROLE_MANAGER",
	}
	Role_value = map[string]int32{
		"ROLE_UNSPECIFIED": 0,
		"ROLE_OWNER":       1,
		"ROLE_MANAGER":     2,
	}
)

Enum value maps for Role.

View Source
var (
	Scope_name = map[int32]string{
		0: "SCOPE_UNSPECIFIED",
		1: "SCOPE_READ",
		2: "SCOPE_WRITE",
	}
	Scope_value = map[string]int32{
		"SCOPE_UNSPECIFIED": 0,
		"SCOPE_READ":        1,
		"SCOPE_WRITE":       2,
	}
)

Enum value maps for Scope.

View Source
var AdminCreatedPayload_Input = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "AdminCreatedPayload_Input",
	Fields: graphql.InputObjectConfigFieldMap{
		"key": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"element": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"admin": &graphql.InputObjectFieldConfig{
			Type: Admin_Input,
		},
	},
})
View Source
var AdminCreatedPayload_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "AdminCreatedPayload",
	Fields: graphql.Fields{
		"key": &graphql.Field{
			Type: graphql.String,
		},
		"element": &graphql.Field{
			Type: utils.Bytes,
		},
		"admin": &graphql.Field{
			Type: Admin_Object,
		},
	},
	Description: "",
})
View Source
var AdminDeletedPayload_Input = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "AdminDeletedPayload_Input",
	Fields: graphql.InputObjectConfigFieldMap{
		"key": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"admin": &graphql.InputObjectFieldConfig{
			Type: Admin_Input,
		},
	},
})
View Source
var AdminDeletedPayload_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "AdminDeletedPayload",
	Fields: graphql.Fields{
		"key": &graphql.Field{
			Type: graphql.String,
		},
		"admin": &graphql.Field{
			Type: Admin_Object,
		},
	},
	Description: "",
})
View Source
var AdminReplacedPayload_Input = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "AdminReplacedPayload_Input",
	Fields: graphql.InputObjectConfigFieldMap{
		"element": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"admin": &graphql.InputObjectFieldConfig{
			Type: Admin_Input,
		},
	},
})
View Source
var AdminReplacedPayload_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "AdminReplacedPayload",
	Fields: graphql.Fields{
		"element": &graphql.Field{
			Type: utils.Bytes,
		},
		"admin": &graphql.Field{
			Type: Admin_Object,
		},
	},
	Description: "",
})
View Source
var AdminUpdatedPayload_Input = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "AdminUpdatedPayload_Input",
	Fields: graphql.InputObjectConfigFieldMap{
		"element": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"admin": &graphql.InputObjectFieldConfig{
			Type: Admin_Input,
		},
	},
})
View Source
var AdminUpdatedPayload_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "AdminUpdatedPayload",
	Fields: graphql.Fields{
		"element": &graphql.Field{
			Type: utils.Bytes,
		},
		"admin": &graphql.Field{
			Type: Admin_Object,
		},
	},
	Description: "",
})
View Source
var Admin_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Admin",
	Fields: graphql.Fields{
		"_key": &graphql.Field{
			Type: graphql.ID,
		},
		"firstName": &graphql.Field{
			Type: graphql.String,
		},
		"lastName": &graphql.Field{
			Type: graphql.String,
		},
		"email": &graphql.Field{
			Type: graphql.String,
		},
		"passwordHash": &graphql.Field{
			Type: utils.Bytes,
		},
		"avatar": &graphql.Field{
			Type: utils.Bytes,
		},
		"notes": &graphql.Field{
			Type: graphql.String,
		},
		"role": &graphql.Field{
			Type: Role_Enum,
		},
		"scopes": &graphql.Field{
			Type: utils.JSON,
		},
	},
	Description: "",
})
View Source
var File_admin_v1_admin_proto protoreflect.FileDescriptor
View Source
var File_admin_v1_events_proto protoreflect.FileDescriptor
View Source
var Role_Enum = graphql.NewEnum(graphql.EnumConfig{
	Name: "Role",
	Values: graphql.EnumValueConfigMap{
		"ROLE_UNSPECIFIED": &graphql.EnumValueConfig{Value: Role_ROLE_UNSPECIFIED},
		"ROLE_OWNER":       &graphql.EnumValueConfig{Value: Role_ROLE_OWNER},
		"ROLE_MANAGER":     &graphql.EnumValueConfig{Value: Role_ROLE_MANAGER},
	},
})
View Source
var Scope_Enum = graphql.NewEnum(graphql.EnumConfig{
	Name: "Scope",
	Values: graphql.EnumValueConfigMap{
		"SCOPE_UNSPECIFIED": &graphql.EnumValueConfig{Value: Scope_SCOPE_UNSPECIFIED},
		"SCOPE_READ":        &graphql.EnumValueConfig{Value: Scope_SCOPE_READ},
		"SCOPE_WRITE":       &graphql.EnumValueConfig{Value: Scope_SCOPE_WRITE},
	},
})

Functions

This section is empty.

Types

type Admin

type Admin struct {

	// key represents the unique identifier of the admin
	Key string `protobuf:"bytes,1,opt,name=_key,proto3" json:"_key,omitempty"`
	// first name of the admin
	FirstName string `protobuf:"bytes,2,opt,name=firstName,proto3" json:"firstName,omitempty"`
	// last name of the admin
	LastName string `protobuf:"bytes,3,opt,name=lastName,proto3" json:"lastName,omitempty"`
	// unique email of the admin
	Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	// password_hash is the hashed password of the admin
	PasswordHash []byte `protobuf:"bytes,5,opt,name=passwordHash,proto3" json:"passwordHash,omitempty"`
	// avatar image associated to the avatar
	Avatar []byte `protobuf:"bytes,6,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
	// notes associated to the admin
	Notes *string `protobuf:"bytes,7,opt,name=notes,proto3,oneof" json:"notes,omitempty"`
	// role of the admin
	Role Role `protobuf:"varint,8,opt,name=role,proto3,enum=admin.v1.Role" json:"role,omitempty"`
	// scopes that the admin contains for each model
	Scopes map[string]Scope `` /* 174-byte string literal not displayed */
	// contains filtered or unexported fields
}

Account ...

func (*Admin) Argument added in v0.1.0

func (*Admin) Argument() graphql.FieldConfigArgument

Argument ...

func (*Admin) Descriptor deprecated

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

Deprecated: Use Admin.ProtoReflect.Descriptor instead.

func (*Admin) GetAvatar

func (x *Admin) GetAvatar() []byte

func (*Admin) GetEmail

func (x *Admin) GetEmail() string

func (*Admin) GetFirstName

func (x *Admin) GetFirstName() string

func (*Admin) GetKey

func (x *Admin) GetKey() string

func (*Admin) GetLastName

func (x *Admin) GetLastName() string

func (*Admin) GetNotes

func (x *Admin) GetNotes() string

func (*Admin) GetPasswordHash added in v0.1.14

func (x *Admin) GetPasswordHash() []byte

func (*Admin) GetRole added in v0.4.2

func (x *Admin) GetRole() Role

func (*Admin) GetScopes added in v0.4.2

func (x *Admin) GetScopes() map[string]Scope

func (*Admin) Object added in v0.1.0

func (*Admin) Object() *graphql.Object

Object ...

func (*Admin) Output added in v0.1.0

func (*Admin) Output() graphql.Output

Output ...

func (*Admin) ProtoMessage

func (*Admin) ProtoMessage()

func (*Admin) ProtoReflect

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

func (*Admin) Reset

func (x *Admin) Reset()

func (*Admin) Schema added in v0.0.10

func (*Admin) Schema() map[string]interface{}

Schema ...

func (*Admin) String

func (x *Admin) String() string

func (*Admin) UnmarshalJSON added in v0.0.19

func (o *Admin) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

func (*Admin) UnmarshalMap added in v0.0.19

func (o *Admin) UnmarshalMap(values map[string]interface{})

UnmarshalMap populates struct fields from a map, handling decoding for special fields.

type AdminCreatedPayload added in v0.0.22

type AdminCreatedPayload struct {
	Key     string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Element []byte `protobuf:"bytes,2,opt,name=element,proto3" json:"element,omitempty"`
	Admin   *Admin `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"`
	// contains filtered or unexported fields
}

func (*AdminCreatedPayload) Argument added in v0.1.0

Argument ...

func (*AdminCreatedPayload) Descriptor deprecated added in v0.0.22

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

Deprecated: Use AdminCreatedPayload.ProtoReflect.Descriptor instead.

func (*AdminCreatedPayload) GetAdmin added in v0.0.22

func (x *AdminCreatedPayload) GetAdmin() *Admin

func (*AdminCreatedPayload) GetElement added in v0.0.22

func (x *AdminCreatedPayload) GetElement() []byte

func (*AdminCreatedPayload) GetKey added in v0.0.22

func (x *AdminCreatedPayload) GetKey() string

func (*AdminCreatedPayload) Object added in v0.1.0

func (*AdminCreatedPayload) Object() *graphql.Object

Object ...

func (*AdminCreatedPayload) Output added in v0.1.0

Output ...

func (*AdminCreatedPayload) ProtoMessage added in v0.0.22

func (*AdminCreatedPayload) ProtoMessage()

func (*AdminCreatedPayload) ProtoReflect added in v0.0.22

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

func (*AdminCreatedPayload) Reset added in v0.0.22

func (x *AdminCreatedPayload) Reset()

func (*AdminCreatedPayload) Schema added in v0.0.22

func (*AdminCreatedPayload) Schema() map[string]interface{}

Schema ...

func (*AdminCreatedPayload) String added in v0.0.22

func (x *AdminCreatedPayload) String() string

func (*AdminCreatedPayload) UnmarshalJSON added in v0.0.22

func (o *AdminCreatedPayload) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

func (*AdminCreatedPayload) UnmarshalMap added in v0.0.22

func (o *AdminCreatedPayload) UnmarshalMap(values map[string]interface{})

UnmarshalMap populates struct fields from a map, handling decoding for special fields.

type AdminDeletedPayload added in v0.0.22

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

func (*AdminDeletedPayload) Argument added in v0.1.0

Argument ...

func (*AdminDeletedPayload) Descriptor deprecated added in v0.0.22

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

Deprecated: Use AdminDeletedPayload.ProtoReflect.Descriptor instead.

func (*AdminDeletedPayload) GetAdmin added in v0.0.22

func (x *AdminDeletedPayload) GetAdmin() *Admin

func (*AdminDeletedPayload) GetKey added in v0.0.22

func (x *AdminDeletedPayload) GetKey() string

func (*AdminDeletedPayload) Object added in v0.1.0

func (*AdminDeletedPayload) Object() *graphql.Object

Object ...

func (*AdminDeletedPayload) Output added in v0.1.0

Output ...

func (*AdminDeletedPayload) ProtoMessage added in v0.0.22

func (*AdminDeletedPayload) ProtoMessage()

func (*AdminDeletedPayload) ProtoReflect added in v0.0.22

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

func (*AdminDeletedPayload) Reset added in v0.0.22

func (x *AdminDeletedPayload) Reset()

func (*AdminDeletedPayload) Schema added in v0.0.22

func (*AdminDeletedPayload) Schema() map[string]interface{}

Schema ...

func (*AdminDeletedPayload) String added in v0.0.22

func (x *AdminDeletedPayload) String() string

func (*AdminDeletedPayload) UnmarshalJSON added in v0.0.22

func (o *AdminDeletedPayload) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

func (*AdminDeletedPayload) UnmarshalMap added in v0.0.22

func (o *AdminDeletedPayload) UnmarshalMap(values map[string]interface{})

UnmarshalMap populates struct fields from a map, handling decoding for special fields.

type AdminReplacedPayload added in v0.0.24

type AdminReplacedPayload struct {
	Element []byte `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"`
	Admin   *Admin `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"`
	// contains filtered or unexported fields
}

func (*AdminReplacedPayload) Argument added in v0.1.0

Argument ...

func (*AdminReplacedPayload) Descriptor deprecated added in v0.0.24

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

Deprecated: Use AdminReplacedPayload.ProtoReflect.Descriptor instead.

func (*AdminReplacedPayload) GetAdmin added in v0.0.24

func (x *AdminReplacedPayload) GetAdmin() *Admin

func (*AdminReplacedPayload) GetElement added in v0.0.24

func (x *AdminReplacedPayload) GetElement() []byte

func (*AdminReplacedPayload) Object added in v0.1.0

func (*AdminReplacedPayload) Object() *graphql.Object

Object ...

func (*AdminReplacedPayload) Output added in v0.1.0

Output ...

func (*AdminReplacedPayload) ProtoMessage added in v0.0.24

func (*AdminReplacedPayload) ProtoMessage()

func (*AdminReplacedPayload) ProtoReflect added in v0.0.24

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

func (*AdminReplacedPayload) Reset added in v0.0.24

func (x *AdminReplacedPayload) Reset()

func (*AdminReplacedPayload) Schema added in v0.0.24

func (*AdminReplacedPayload) Schema() map[string]interface{}

Schema ...

func (*AdminReplacedPayload) String added in v0.0.24

func (x *AdminReplacedPayload) String() string

func (*AdminReplacedPayload) UnmarshalJSON added in v0.0.24

func (o *AdminReplacedPayload) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

func (*AdminReplacedPayload) UnmarshalMap added in v0.0.24

func (o *AdminReplacedPayload) UnmarshalMap(values map[string]interface{})

UnmarshalMap populates struct fields from a map, handling decoding for special fields.

type AdminUpdatedPayload added in v0.0.22

type AdminUpdatedPayload struct {
	Element []byte `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"`
	Admin   *Admin `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"`
	// contains filtered or unexported fields
}

func (*AdminUpdatedPayload) Argument added in v0.1.0

Argument ...

func (*AdminUpdatedPayload) Descriptor deprecated added in v0.0.22

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

Deprecated: Use AdminUpdatedPayload.ProtoReflect.Descriptor instead.

func (*AdminUpdatedPayload) GetAdmin added in v0.0.22

func (x *AdminUpdatedPayload) GetAdmin() *Admin

func (*AdminUpdatedPayload) GetElement added in v0.0.22

func (x *AdminUpdatedPayload) GetElement() []byte

func (*AdminUpdatedPayload) Object added in v0.1.0

func (*AdminUpdatedPayload) Object() *graphql.Object

Object ...

func (*AdminUpdatedPayload) Output added in v0.1.0

Output ...

func (*AdminUpdatedPayload) ProtoMessage added in v0.0.22

func (*AdminUpdatedPayload) ProtoMessage()

func (*AdminUpdatedPayload) ProtoReflect added in v0.0.22

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

func (*AdminUpdatedPayload) Reset added in v0.0.22

func (x *AdminUpdatedPayload) Reset()

func (*AdminUpdatedPayload) Schema added in v0.0.22

func (*AdminUpdatedPayload) Schema() map[string]interface{}

Schema ...

func (*AdminUpdatedPayload) String added in v0.0.22

func (x *AdminUpdatedPayload) String() string

func (*AdminUpdatedPayload) UnmarshalJSON added in v0.0.22

func (o *AdminUpdatedPayload) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

func (*AdminUpdatedPayload) UnmarshalMap added in v0.0.22

func (o *AdminUpdatedPayload) UnmarshalMap(values map[string]interface{})

UnmarshalMap populates struct fields from a map, handling decoding for special fields.

type Role added in v0.4.2

type Role int32
const (
	Role_ROLE_UNSPECIFIED Role = 0
	Role_ROLE_OWNER       Role = 1
	Role_ROLE_MANAGER     Role = 2
)

func (Role) Descriptor added in v0.4.2

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum added in v0.4.2

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated added in v0.4.2

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

Deprecated: Use Role.Descriptor instead.

func (Role) Number added in v0.4.2

func (x Role) Number() protoreflect.EnumNumber

func (Role) String added in v0.4.2

func (x Role) String() string

func (Role) Type added in v0.4.2

func (Role) Type() protoreflect.EnumType

type Scope added in v0.4.2

type Scope int32
const (
	Scope_SCOPE_UNSPECIFIED Scope = 0
	Scope_SCOPE_READ        Scope = 1
	Scope_SCOPE_WRITE       Scope = 2
)

func (Scope) Descriptor added in v0.4.2

func (Scope) Descriptor() protoreflect.EnumDescriptor

func (Scope) Enum added in v0.4.2

func (x Scope) Enum() *Scope

func (Scope) EnumDescriptor deprecated added in v0.4.2

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

Deprecated: Use Scope.Descriptor instead.

func (Scope) Number added in v0.4.2

func (x Scope) Number() protoreflect.EnumNumber

func (Scope) String added in v0.4.2

func (x Scope) String() string

func (Scope) Type added in v0.4.2

func (Scope) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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