Documentation ¶
Index ¶
- Variables
- type Resource
- type Schema
- type UUID
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetCurrentIdentity() *User_Identity
- func (x *User) GetIdentities() []*User_Identity
- func (x *User) GetUuid() *UUID
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type User_Identity
- func (*User_Identity) Descriptor() ([]byte, []int)deprecated
- func (x *User_Identity) GetId() string
- func (x *User_Identity) GetService() enums.Service
- func (*User_Identity) ProtoMessage()
- func (x *User_Identity) ProtoReflect() protoreflect.Message
- func (x *User_Identity) Reset()
- func (x *User_Identity) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_sym_models_resource_proto protoreflect.FileDescriptor
View Source
var File_sym_models_schema_proto protoreflect.FileDescriptor
View Source
var File_sym_models_user_proto protoreflect.FileDescriptor
View Source
var File_sym_models_uuid_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct { Service enums.Service `protobuf:"varint,1,opt,name=service,proto3,enum=sym.enums.Service" json:"service,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Resource represents some entity from a given service
func (*Resource) Descriptor
deprecated
func (*Resource) GetService ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type Schema ¶
type Schema struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*Schema) Descriptor
deprecated
func (*Schema) GetVersion ¶
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
type UUID ¶
type UUID struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*UUID) Descriptor
deprecated
func (*UUID) ProtoMessage ¶
func (*UUID) ProtoMessage()
func (*UUID) ProtoReflect ¶
func (x *UUID) ProtoReflect() protoreflect.Message
type User ¶
type User struct { // The uuid for a user remains constant across all services Uuid *UUID `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // current_identity is the system the user is currently interacting with sym // from CurrentIdentity *User_Identity `protobuf:"bytes,2,opt,name=current_identity,json=currentIdentity,proto3" json:"current_identity,omitempty"` Identities []*User_Identity `protobuf:"bytes,3,rep,name=identities,proto3" json:"identities,omitempty"` // contains filtered or unexported fields }
User holds multiple Identities for various integrated services.
func (*User) Descriptor
deprecated
func (*User) GetCurrentIdentity ¶
func (x *User) GetCurrentIdentity() *User_Identity
func (*User) GetIdentities ¶
func (x *User) GetIdentities() []*User_Identity
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type User_Identity ¶
type User_Identity struct { Service enums.Service `protobuf:"varint,1,opt,name=service,proto3,enum=sym.enums.Service" json:"service,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*User_Identity) Descriptor
deprecated
func (*User_Identity) Descriptor() ([]byte, []int)
Deprecated: Use User_Identity.ProtoReflect.Descriptor instead.
func (*User_Identity) GetId ¶
func (x *User_Identity) GetId() string
func (*User_Identity) GetService ¶
func (x *User_Identity) GetService() enums.Service
func (*User_Identity) ProtoMessage ¶
func (*User_Identity) ProtoMessage()
func (*User_Identity) ProtoReflect ¶
func (x *User_Identity) ProtoReflect() protoreflect.Message
func (*User_Identity) Reset ¶
func (x *User_Identity) Reset()
func (*User_Identity) String ¶
func (x *User_Identity) String() string
Click to show internal directories.
Click to hide internal directories.