relationv1

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Permission_Role_name = map[int32]string{
		0: "ROLE_UNSPECIFIED",
		1: "ROLE_ADMIN",
		2: "ROLE_LIBRARIAN",
		3: "ROLE_OWNER",
		4: "ROLE_USER",
	}
	Permission_Role_value = map[string]int32{
		"ROLE_UNSPECIFIED": 0,
		"ROLE_ADMIN":       1,
		"ROLE_LIBRARIAN":   2,
		"ROLE_OWNER":       3,
		"ROLE_USER":        4,
	}
)

Enum value maps for Permission_Role.

View Source
var File_relation_v1_library_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Borrow

type Borrow struct {
	Key      string       `protobuf:"bytes,1,opt,name=key,json=_key,proto3" json:"key,omitempty"`
	Id       string       `protobuf:"bytes,2,opt,name=id,json=_id,proto3" json:"id,omitempty"`
	Revision string       `protobuf:"bytes,3,opt,name=revision,json=_rev,proto3" json:"revision,omitempty"`
	From     string       `protobuf:"bytes,4,opt,name=from,json=_from,proto3" json:"from,omitempty"`
	To       string       `protobuf:"bytes,5,opt,name=to,json=_to,proto3" json:"to,omitempty"`
	DateTime *v1.DateTime `protobuf:"bytes,6,opt,name=date_time,json=dateTime,proto3" json:"date_time,omitempty"`
	// contains filtered or unexported fields
}

func (*Borrow) Descriptor deprecated

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

Deprecated: Use Borrow.ProtoReflect.Descriptor instead.

func (*Borrow) GetDateTime

func (x *Borrow) GetDateTime() *v1.DateTime

func (*Borrow) GetFrom

func (x *Borrow) GetFrom() string

func (*Borrow) GetId

func (x *Borrow) GetId() string

func (*Borrow) GetKey

func (x *Borrow) GetKey() string

func (*Borrow) GetRevision

func (x *Borrow) GetRevision() string

func (*Borrow) GetTo

func (x *Borrow) GetTo() string

func (*Borrow) MarshalJSON

func (msg *Borrow) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Borrow) ProtoMessage

func (*Borrow) ProtoMessage()

func (*Borrow) ProtoReflect

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

func (*Borrow) Reset

func (x *Borrow) Reset()

func (*Borrow) String

func (x *Borrow) String() string

func (*Borrow) UnmarshalJSON

func (msg *Borrow) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Permission

type Permission struct {
	Key      string          `protobuf:"bytes,1,opt,name=key,json=_key,proto3" json:"key,omitempty"`
	Id       string          `protobuf:"bytes,2,opt,name=id,json=_id,proto3" json:"id,omitempty"`
	Revision string          `protobuf:"bytes,3,opt,name=revision,json=_rev,proto3" json:"revision,omitempty"`
	From     string          `protobuf:"bytes,4,opt,name=from,json=_from,proto3" json:"from,omitempty"`
	To       string          `protobuf:"bytes,5,opt,name=to,json=_to,proto3" json:"to,omitempty"`
	Role     Permission_Role `protobuf:"varint,6,opt,name=role,proto3,enum=relation.v1.Permission_Role" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*Permission) Descriptor deprecated

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

Deprecated: Use Permission.ProtoReflect.Descriptor instead.

func (*Permission) GetFrom

func (x *Permission) GetFrom() string

func (*Permission) GetId

func (x *Permission) GetId() string

func (*Permission) GetKey

func (x *Permission) GetKey() string

func (*Permission) GetRevision

func (x *Permission) GetRevision() string

func (*Permission) GetRole

func (x *Permission) GetRole() Permission_Role

func (*Permission) GetTo

func (x *Permission) GetTo() string

func (*Permission) MarshalJSON

func (msg *Permission) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Permission) ProtoMessage

func (*Permission) ProtoMessage()

func (*Permission) ProtoReflect

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

func (*Permission) Reset

func (x *Permission) Reset()

func (*Permission) String

func (x *Permission) String() string

func (*Permission) UnmarshalJSON

func (msg *Permission) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Permission_Role

type Permission_Role int32
const (
	Permission_ROLE_UNSPECIFIED Permission_Role = 0
	Permission_ROLE_ADMIN       Permission_Role = 1
	Permission_ROLE_LIBRARIAN   Permission_Role = 2
	Permission_ROLE_OWNER       Permission_Role = 3
	Permission_ROLE_USER        Permission_Role = 4
)

func (Permission_Role) Descriptor

func (Permission_Role) Enum

func (x Permission_Role) Enum() *Permission_Role

func (Permission_Role) EnumDescriptor deprecated

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

Deprecated: Use Permission_Role.Descriptor instead.

func (Permission_Role) Number

func (Permission_Role) String

func (x Permission_Role) String() string

func (Permission_Role) Type

Jump to

Keyboard shortcuts

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