models

package
v0.0.0-...-5a33aa2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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"` // The service this is a resource in
	Id      string        `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`                                   // How the resource is identified
	// contains filtered or unexported fields
}

Resource represents some entity from a given service

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetId

func (x *Resource) GetId() string

func (*Resource) GetService

func (x *Resource) GetService() enums.Service

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Schema.ProtoReflect.Descriptor instead.

func (*Schema) GetVersion

func (x *Schema) GetVersion() int32

func (*Schema) ProtoMessage

func (*Schema) ProtoMessage()

func (*Schema) ProtoReflect

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

func (*Schema) Reset

func (x *Schema) Reset()

func (*Schema) String

func (x *Schema) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UUID.ProtoReflect.Descriptor instead.

func (*UUID) GetValue

func (x *UUID) GetValue() string

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

func (*UUID) ProtoReflect

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

func (*UUID) Reset

func (x *UUID) Reset()

func (*UUID) String

func (x *UUID) String() string

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"` // identities this user has
	// contains filtered or unexported fields
}

User holds multiple Identities for various integrated services.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCurrentIdentity

func (x *User) GetCurrentIdentity() *User_Identity

func (*User) GetIdentities

func (x *User) GetIdentities() []*User_Identity

func (*User) GetUuid

func (x *User) GetUuid() *UUID

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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
}

Identity of the user in a given service

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

Jump to

Keyboard shortcuts

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