Documentation
¶
Index ¶
- Variables
- type Borrow
- func (*Borrow) Descriptor() ([]byte, []int)deprecated
- func (x *Borrow) GetDateTime() *v1.DateTime
- func (x *Borrow) GetFrom() string
- func (x *Borrow) GetId() string
- func (x *Borrow) GetKey() string
- func (x *Borrow) GetRevision() string
- func (x *Borrow) GetTo() string
- func (msg *Borrow) MarshalJSON() ([]byte, error)
- func (*Borrow) ProtoMessage()
- func (x *Borrow) ProtoReflect() protoreflect.Message
- func (x *Borrow) Reset()
- func (x *Borrow) String() string
- func (msg *Borrow) UnmarshalJSON(b []byte) error
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)deprecated
- func (x *Permission) GetFrom() string
- func (x *Permission) GetId() string
- func (x *Permission) GetKey() string
- func (x *Permission) GetRevision() string
- func (x *Permission) GetRole() Permission_Role
- func (x *Permission) GetTo() string
- func (msg *Permission) MarshalJSON() ([]byte, error)
- func (*Permission) ProtoMessage()
- func (x *Permission) ProtoReflect() protoreflect.Message
- func (x *Permission) Reset()
- func (x *Permission) String() string
- func (msg *Permission) UnmarshalJSON(b []byte) error
- type Permission_Role
- func (Permission_Role) Descriptor() protoreflect.EnumDescriptor
- func (x Permission_Role) Enum() *Permission_Role
- func (Permission_Role) EnumDescriptor() ([]byte, []int)deprecated
- func (x Permission_Role) Number() protoreflect.EnumNumber
- func (x Permission_Role) String() string
- func (Permission_Role) Type() protoreflect.EnumType
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) GetDateTime ¶
func (*Borrow) GetRevision ¶
func (*Borrow) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Borrow) ProtoMessage ¶
func (*Borrow) ProtoMessage()
func (*Borrow) ProtoReflect ¶
func (x *Borrow) ProtoReflect() protoreflect.Message
func (*Borrow) UnmarshalJSON ¶
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) Descriptor() protoreflect.EnumDescriptor
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 (x Permission_Role) Number() protoreflect.EnumNumber
func (Permission_Role) String ¶
func (x Permission_Role) String() string
func (Permission_Role) Type ¶
func (Permission_Role) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.