Documentation ¶
Index ¶
- func Context(ctx context.Context, mandatory Mandatory) context.Context
- type Authorization
- func (a Authorization) ApiKey() string
- func (a Authorization) Authorization() string
- func (a Authorization) JSON() map[string]interface{}
- func (a Authorization) MarshalJSON() ([]byte, error)
- func (a Authorization) ServiceID() string
- func (a Authorization) ServiceSecret() string
- func (a Authorization) Token() string
- type Device
- type DeviceInfo
- type DeviceType
- type Mandatory
- func (m Mandatory) Authorization() Authorization
- func (m Mandatory) Device() Device
- func (m Mandatory) DeviceType() DeviceType
- func (m Mandatory) IpAddresses() []string
- func (m Mandatory) IsMobileApp() bool
- func (m Mandatory) IsUserLogin() bool
- func (m Mandatory) IsWebApp() bool
- func (m Mandatory) JSON() map[string]interface{}
- func (m Mandatory) Language() string
- func (m Mandatory) OS() OS
- func (m Mandatory) TraceID() string
- func (m Mandatory) User() User
- func (m Mandatory) UserAgent() UserAgent
- func (m Mandatory) Valid() bool
- type MandatoryBuilder
- func (m MandatoryBuilder) Build() Mandatory
- func (m MandatoryBuilder) WithApiKey(apiKey string) MandatoryBuilder
- func (m MandatoryBuilder) WithApplication(deviceID, appsVersion string) MandatoryBuilder
- func (m MandatoryBuilder) WithAuthorization(authorization string) MandatoryBuilder
- func (m MandatoryBuilder) WithDeviceType(deviceType string) MandatoryBuilder
- func (m MandatoryBuilder) WithIpAddresses(ipAddress []string) MandatoryBuilder
- func (m MandatoryBuilder) WithLanguage(language string) MandatoryBuilder
- func (m MandatoryBuilder) WithPhone(ID uint64, phone string) MandatoryBuilder
- func (m MandatoryBuilder) WithServiceSecret(ID, secret string) MandatoryBuilder
- func (m MandatoryBuilder) WithTraceID(traceID string) MandatoryBuilder
- func (m MandatoryBuilder) WithUser(ID uint64, email string) MandatoryBuilder
- func (m MandatoryBuilder) WithUserAgent(userAgent string) MandatoryBuilder
- func (m MandatoryBuilder) WithUserCompany(ID uint64, email string, phone string, companyID uint64) MandatoryBuilder
- func (m MandatoryBuilder) WithUserPhone(ID uint64, email string, phone string) MandatoryBuilder
- type OS
- type User
- type UserAgent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authorization ¶
type Authorization struct {
// contains filtered or unexported fields
}
func (Authorization) ApiKey ¶
func (a Authorization) ApiKey() string
func (Authorization) Authorization ¶
func (a Authorization) Authorization() string
func (Authorization) JSON ¶
func (a Authorization) JSON() map[string]interface{}
func (Authorization) MarshalJSON ¶
func (a Authorization) MarshalJSON() ([]byte, error)
func (Authorization) ServiceID ¶
func (a Authorization) ServiceID() string
func (Authorization) ServiceSecret ¶
func (a Authorization) ServiceSecret() string
func (Authorization) Token ¶
func (a Authorization) Token() string
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (Device) AppVersion ¶
type DeviceInfo ¶
type DeviceInfo struct {
// contains filtered or unexported fields
}
func (DeviceInfo) Code ¶
func (d DeviceInfo) Code() string
func (DeviceInfo) ID ¶
func (d DeviceInfo) ID() DeviceType
func (DeviceInfo) JSON ¶
func (d DeviceInfo) JSON() map[string]interface{}
func (DeviceInfo) Name ¶
func (d DeviceInfo) Name() string
type DeviceType ¶
type DeviceType int
const ( Android DeviceType = iota + 1 Ios Web MobileWeb )
func DeviceFromString ¶
func DeviceFromString(str string) (DeviceType, error)
func DeviceFromStringCode ¶
func DeviceFromStringCode(str string) (DeviceType, error)
func (DeviceType) Info ¶
func (s DeviceType) Info() DeviceInfo
func (DeviceType) JSON ¶
func (s DeviceType) JSON() map[string]interface{}
func (DeviceType) MarshalJSON ¶
func (s DeviceType) MarshalJSON() ([]byte, error)
func (*DeviceType) Scan ¶
func (s *DeviceType) Scan(value interface{}) error
Scan implements the Scanner interface.
func (*DeviceType) UnmarshalJSON ¶
func (s *DeviceType) UnmarshalJSON(b []byte) error
type Mandatory ¶
type Mandatory struct {
// contains filtered or unexported fields
}
func FromContext ¶
func (Mandatory) Authorization ¶
func (m Mandatory) Authorization() Authorization
func (Mandatory) DeviceType ¶
func (m Mandatory) DeviceType() DeviceType
func (Mandatory) IpAddresses ¶
func (Mandatory) IsMobileApp ¶
func (Mandatory) IsUserLogin ¶
type MandatoryBuilder ¶
type MandatoryBuilder struct { Mandatory // contains filtered or unexported fields }
func NewMandatoryBuilder ¶
func NewMandatoryBuilder() (MandatoryBuilder, error)
func (MandatoryBuilder) Build ¶
func (m MandatoryBuilder) Build() Mandatory
func (MandatoryBuilder) WithApiKey ¶
func (m MandatoryBuilder) WithApiKey(apiKey string) MandatoryBuilder
func (MandatoryBuilder) WithApplication ¶
func (m MandatoryBuilder) WithApplication(deviceID, appsVersion string) MandatoryBuilder
func (MandatoryBuilder) WithAuthorization ¶
func (m MandatoryBuilder) WithAuthorization(authorization string) MandatoryBuilder
func (MandatoryBuilder) WithDeviceType ¶
func (m MandatoryBuilder) WithDeviceType(deviceType string) MandatoryBuilder
func (MandatoryBuilder) WithIpAddresses ¶
func (m MandatoryBuilder) WithIpAddresses(ipAddress []string) MandatoryBuilder
func (MandatoryBuilder) WithLanguage ¶
func (m MandatoryBuilder) WithLanguage(language string) MandatoryBuilder
func (MandatoryBuilder) WithPhone ¶
func (m MandatoryBuilder) WithPhone(ID uint64, phone string) MandatoryBuilder
func (MandatoryBuilder) WithServiceSecret ¶
func (m MandatoryBuilder) WithServiceSecret(ID, secret string) MandatoryBuilder
func (MandatoryBuilder) WithTraceID ¶
func (m MandatoryBuilder) WithTraceID(traceID string) MandatoryBuilder
func (MandatoryBuilder) WithUser ¶
func (m MandatoryBuilder) WithUser(ID uint64, email string) MandatoryBuilder
func (MandatoryBuilder) WithUserAgent ¶
func (m MandatoryBuilder) WithUserAgent(userAgent string) MandatoryBuilder
func (MandatoryBuilder) WithUserCompany ¶
func (m MandatoryBuilder) WithUserCompany(ID uint64, email string, phone string, companyID uint64) MandatoryBuilder
func (MandatoryBuilder) WithUserPhone ¶
func (m MandatoryBuilder) WithUserPhone(ID uint64, email string, phone string) MandatoryBuilder
Click to show internal directories.
Click to hide internal directories.