models

package
v0.0.0-...-c160ba3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_models_models_proto protoreflect.FileDescriptor

Functions

func NewID

func NewID() uuid.UUID

Types

type Domain

type Domain struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Domain) Descriptor deprecated

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

Deprecated: Use Domain.ProtoReflect.Descriptor instead.

func (*Domain) GetName

func (x *Domain) GetName() string

func (*Domain) ProtoMessage

func (*Domain) ProtoMessage()

func (*Domain) ProtoReflect

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

func (*Domain) Reset

func (x *Domain) Reset()

func (*Domain) String

func (x *Domain) String() string

type Event

type Event struct {
	Name                   string               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Domain                 string               `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	Hostname               string               `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Pathname               string               `protobuf:"bytes,4,opt,name=pathname,proto3" json:"pathname,omitempty"`
	Meta                   map[string]string    `` /* 149-byte string literal not displayed */
	UserId                 uint64               `protobuf:"varint,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Referrer               string               `protobuf:"bytes,7,opt,name=referrer,proto3" json:"referrer,omitempty"`
	ReferrerSource         string               `protobuf:"bytes,8,opt,name=referrer_source,json=referrerSource,proto3" json:"referrer_source,omitempty"`
	UtmMedium              string               `protobuf:"bytes,9,opt,name=utm_medium,json=utmMedium,proto3" json:"utm_medium,omitempty"`
	UtmSource              string               `protobuf:"bytes,10,opt,name=utm_source,json=utmSource,proto3" json:"utm_source,omitempty"`
	UtmCampaign            string               `protobuf:"bytes,11,opt,name=utm_campaign,json=utmCampaign,proto3" json:"utm_campaign,omitempty"`
	CountryCode            string               `protobuf:"bytes,12,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
	ScreenSize             string               `protobuf:"bytes,13,opt,name=screen_size,json=screenSize,proto3" json:"screen_size,omitempty"`
	OperatingSystem        string               `protobuf:"bytes,14,opt,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty"`
	OperatingSystemVersion string               `` /* 130-byte string literal not displayed */
	Browser                string               `protobuf:"bytes,16,opt,name=browser,proto3" json:"browser,omitempty"`
	BrowserVersion         string               `protobuf:"bytes,17,opt,name=browser_version,json=browserVersion,proto3" json:"browser_version,omitempty"`
	Timestamp              *timestamp.Timestamp `protobuf:"bytes,18,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	SessionId              uint64               `protobuf:"varint,19,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetBrowser

func (x *Event) GetBrowser() string

func (*Event) GetBrowserVersion

func (x *Event) GetBrowserVersion() string

func (*Event) GetCountryCode

func (x *Event) GetCountryCode() string

func (*Event) GetDomain

func (x *Event) GetDomain() string

func (*Event) GetHostname

func (x *Event) GetHostname() string

func (*Event) GetMeta

func (x *Event) GetMeta() map[string]string

func (*Event) GetName

func (x *Event) GetName() string

func (*Event) GetOperatingSystem

func (x *Event) GetOperatingSystem() string

func (*Event) GetOperatingSystemVersion

func (x *Event) GetOperatingSystemVersion() string

func (*Event) GetPathname

func (x *Event) GetPathname() string

func (*Event) GetReferrer

func (x *Event) GetReferrer() string

func (*Event) GetReferrerSource

func (x *Event) GetReferrerSource() string

func (*Event) GetScreenSize

func (x *Event) GetScreenSize() string

func (*Event) GetSessionId

func (x *Event) GetSessionId() uint64

func (*Event) GetTimestamp

func (x *Event) GetTimestamp() *timestamp.Timestamp

func (*Event) GetUserId

func (x *Event) GetUserId() uint64

func (*Event) GetUtmCampaign

func (x *Event) GetUtmCampaign() string

func (*Event) GetUtmMedium

func (x *Event) GetUtmMedium() string

func (*Event) GetUtmSource

func (x *Event) GetUtmSource() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type EventPayload

type EventPayload struct {
	Name     string            `json:"n"`
	Domain   string            `json:"d"`
	URL      string            `json:"url"`
	HashMode bool              `json:"h"`
	Referrer string            `json:"r"`
	Meta     map[string]string `json:"m"`
}

type Session

type Session struct {
	Sign                   int32                `protobuf:"varint,1,opt,name=sign,proto3" json:"sign,omitempty"`
	Domain                 string               `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	Hostname               string               `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
	IsBounce               bool                 `protobuf:"varint,4,opt,name=is_bounce,json=isBounce,proto3" json:"is_bounce,omitempty"`
	EntryPage              string               `protobuf:"bytes,5,opt,name=entry_page,json=entryPage,proto3" json:"entry_page,omitempty"`
	ExitPage               string               `protobuf:"bytes,6,opt,name=exit_page,json=exitPage,proto3" json:"exit_page,omitempty"`
	PageViews              int32                `protobuf:"varint,7,opt,name=page_views,json=pageViews,proto3" json:"page_views,omitempty"`
	Events                 int32                `protobuf:"varint,8,opt,name=events,proto3" json:"events,omitempty"`
	Duration               *duration.Duration   `protobuf:"bytes,9,opt,name=duration,proto3" json:"duration,omitempty"`
	Referrer               string               `protobuf:"bytes,10,opt,name=referrer,proto3" json:"referrer,omitempty"`
	ReferrerSource         string               `protobuf:"bytes,11,opt,name=referrer_source,json=referrerSource,proto3" json:"referrer_source,omitempty"`
	UtmMedium              string               `protobuf:"bytes,12,opt,name=utm_medium,json=utmMedium,proto3" json:"utm_medium,omitempty"`
	UtmSource              string               `protobuf:"bytes,13,opt,name=utm_source,json=utmSource,proto3" json:"utm_source,omitempty"`
	UtmCampaign            string               `protobuf:"bytes,14,opt,name=utm_campaign,json=utmCampaign,proto3" json:"utm_campaign,omitempty"`
	CountryCode            string               `protobuf:"bytes,15,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
	ScreenSize             string               `protobuf:"bytes,16,opt,name=screen_size,json=screenSize,proto3" json:"screen_size,omitempty"`
	OperatingSystem        string               `protobuf:"bytes,17,opt,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty"`
	OperatingSystemVersion string               `` /* 130-byte string literal not displayed */
	Browser                string               `protobuf:"bytes,19,opt,name=browser,proto3" json:"browser,omitempty"`
	BrowserVersion         string               `protobuf:"bytes,20,opt,name=browser_version,json=browserVersion,proto3" json:"browser_version,omitempty"`
	Start                  *timestamp.Timestamp `protobuf:"bytes,21,opt,name=start,proto3" json:"start,omitempty"`
	Timestamp              *timestamp.Timestamp `protobuf:"bytes,22,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Id                     uint64               `protobuf:"varint,23,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetBrowser

func (x *Session) GetBrowser() string

func (*Session) GetBrowserVersion

func (x *Session) GetBrowserVersion() string

func (*Session) GetCountryCode

func (x *Session) GetCountryCode() string

func (*Session) GetDomain

func (x *Session) GetDomain() string

func (*Session) GetDuration

func (x *Session) GetDuration() *duration.Duration

func (*Session) GetEntryPage

func (x *Session) GetEntryPage() string

func (*Session) GetEvents

func (x *Session) GetEvents() int32

func (*Session) GetExitPage

func (x *Session) GetExitPage() string

func (*Session) GetHostname

func (x *Session) GetHostname() string

func (*Session) GetId

func (x *Session) GetId() uint64

func (*Session) GetIsBounce

func (x *Session) GetIsBounce() bool

func (*Session) GetOperatingSystem

func (x *Session) GetOperatingSystem() string

func (*Session) GetOperatingSystemVersion

func (x *Session) GetOperatingSystemVersion() string

func (*Session) GetPageViews

func (x *Session) GetPageViews() int32

func (*Session) GetReferrer

func (x *Session) GetReferrer() string

func (*Session) GetReferrerSource

func (x *Session) GetReferrerSource() string

func (*Session) GetScreenSize

func (x *Session) GetScreenSize() string

func (*Session) GetSign

func (x *Session) GetSign() int32

func (*Session) GetStart

func (x *Session) GetStart() *timestamp.Timestamp

func (*Session) GetTimestamp

func (x *Session) GetTimestamp() *timestamp.Timestamp

func (*Session) GetUtmCampaign

func (x *Session) GetUtmCampaign() string

func (*Session) GetUtmMedium

func (x *Session) GetUtmMedium() string

func (*Session) GetUtmSource

func (x *Session) GetUtmSource() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

type Site

type Site struct {
	Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
	// contains filtered or unexported fields
}

func (*Site) Descriptor deprecated

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

Deprecated: Use Site.ProtoReflect.Descriptor instead.

func (*Site) GetDomain

func (x *Site) GetDomain() string

func (*Site) ProtoMessage

func (*Site) ProtoMessage()

func (*Site) ProtoReflect

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

func (*Site) Reset

func (x *Site) Reset()

func (*Site) String

func (x *Site) String() string

type User

type User struct {
	Id       []byte    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username string    `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email    string    `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Password []byte    `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	Domains  []*Domain `protobuf:"bytes,5,rep,name=domains,proto3" json:"domains,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetDomains

func (x *User) GetDomains() []*Domain

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() []byte

func (*User) GetPassword

func (x *User) GetPassword() []byte

func (*User) GetUsername

func (x *User) GetUsername() string

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 UserData

type UserData struct {
	Username string `valid:"alphanum,required"`
	Email    string `valid:"email,required"`
	Password string `valid:"alphanum,required"`
}

func (UserData) Valid

func (u UserData) Valid() error

Jump to

Keyboard shortcuts

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