mytype

package
v0.0.0-...-9a81921 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AssetRefRegexp = regexp.MustCompile(`(?:(?:^|\s)\${2})([\w-.]+)(?:\?{2}(.*)\?{2})?(?:\s|$)`)
View Source
var AtRefRegexp = regexp.MustCompile(`(?:^|\s)@(\w+)(?:\s|$)`)
View Source
var CrossStudyRefRegexp = regexp.MustCompile(`(?:^|\s)(\w+)\/([\w-]+)#(\d+)(?:\s|$)`)
View Source
var ErrInvalidEmail = errors.New("invalid email")
View Source
var ErrPasswordEmpty = errors.New("password cannot be empty")
View Source
var ErrPasswordTooWeak = errors.New("password too weak")
View Source
var ErrUndefined = errors.New("cannot encode status undefined")
View Source
var InvalidColorError = errors.New("color must be in hexadecimal format")
View Source
var InvalidFilenameCharacters = errors.New("filename may only contain alphanumeric characters, hyphens, underscores, or dots")
View Source
var InvalidFilenameHyphens = errors.New("filename cannot have multiple consecutive dots, and cannot begin or end with a dot")
View Source
var InvalidFilenameLength = errors.New("filename must be less than 40 characters")
View Source
var InvalidUsernameCharacters = errors.New("username may only contain alphanumeric characters or hyphens")
View Source
var InvalidUsernameHyphens = errors.New("username cannot have multiple consecutive hyphens, and cannot begin or end with a hyphen")
View Source
var InvalidUsernameLength = errors.New("username must be less than 40 characters")
View Source
var InvalidWordNameCharacters = errors.New("name may only contain alphanumeric characters or hyphens")
View Source
var InvalidWordNameLength = errors.New("name must be less than 40 characters")
View Source
var InvalidWordsNameCharacters = errors.New("name may only contain alphanumeric characters, hyphens, or underscores")
View Source
var InvalidWordsNameLength = errors.New("name must be at least one character but less than 40 characters")
View Source
var NumberRefRegexp = regexp.MustCompile(`(?:^|\s)#(\d+)(?:\s|$)`)

Functions

This section is empty.

Types

type AccessLevel

type AccessLevel int
const (
	CreateAccess AccessLevel = iota
	ConnectAccess
	DeleteAccess
	DisconnectAccess
	ReadAccess
	UpdateAccess
)

func ParseAccessLevel

func ParseAccessLevel(lvl string) (AccessLevel, error)

func (*AccessLevel) Scan

func (al *AccessLevel) Scan(value interface{}) (err error)

func (AccessLevel) String

func (al AccessLevel) String() string

func (AccessLevel) Value

func (al AccessLevel) Value() (driver.Value, error)

type AssetRef

type AssetRef struct {
	Name  string
	Index []int
	Query string
}

AssetRef -

type AtRef

type AtRef struct {
	Name  string
	Index []int
}

AtRef -

type Audience

type Audience int
const (
	NoAudience Audience = iota
	Authenticated
	Everyone
)

func ParseAudience

func ParseAudience(aud string) (Audience, error)

func (*Audience) Scan

func (a *Audience) Scan(value interface{}) (err error)

func (Audience) String

func (a Audience) String() string

func (Audience) Value

func (a Audience) Value() (driver.Value, error)

type Blacklist

type Blacklist struct {
	Usernames []string `yaml:"usernames"`
}

type Body

type Body struct {
	Status pgtype.Status
	String string
}

func (*Body) AssignTo

func (src *Body) AssignTo(dst interface{}) error

func (*Body) DecodeBinary

func (dst *Body) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*Body) DecodeText

func (dst *Body) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*Body) EncodeBinary

func (src *Body) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Body) EncodeText

func (src *Body) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Body) Get

func (dst *Body) Get() interface{}

func (*Body) Scan

func (dst *Body) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*Body) Set

func (dst *Body) Set(src interface{}) error

func (*Body) Value

func (src *Body) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type Color

type Color struct {
	Status pgtype.Status
	String string
}

func (*Color) AssignTo

func (src *Color) AssignTo(dst interface{}) error

func (*Color) DecodeBinary

func (dst *Color) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*Color) DecodeText

func (dst *Color) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*Color) EncodeBinary

func (src *Color) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Color) EncodeText

func (src *Color) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Color) Get

func (dst *Color) Get() interface{}

func (*Color) Scan

func (dst *Color) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*Color) Set

func (dst *Color) Set(src interface{}) error

func (*Color) Value

func (src *Color) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type CourseStatus

type CourseStatus struct {
	Status pgtype.Status
	V      CourseStatusValue
}

func NewCourseStatus

func NewCourseStatus(v CourseStatusValue) CourseStatus

func ParseCourseStatus

func ParseCourseStatus(s string) (CourseStatus, error)

func (*CourseStatus) AssignTo

func (src *CourseStatus) AssignTo(dst interface{}) error

func (*CourseStatus) DecodeBinary

func (dst *CourseStatus) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*CourseStatus) DecodeText

func (dst *CourseStatus) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*CourseStatus) EncodeBinary

func (src *CourseStatus) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*CourseStatus) EncodeText

func (src *CourseStatus) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*CourseStatus) Get

func (src *CourseStatus) Get() interface{}

func (*CourseStatus) Scan

func (dst *CourseStatus) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*CourseStatus) Set

func (dst *CourseStatus) Set(src interface{}) error

func (*CourseStatus) String

func (src *CourseStatus) String() string

func (*CourseStatus) Value

func (src *CourseStatus) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type CourseStatusValue

type CourseStatusValue int
const (
	CourseStatusAdvancing CourseStatusValue = iota
	CourseStatusCompleted
)

func (CourseStatusValue) String

func (f CourseStatusValue) String() string

type CrossStudyRef

type CrossStudyRef struct {
	Owner  string
	Name   string
	Number int32
	Index  []int
}

CrossStudyRef -

type Email

type Email struct {
	Status pgtype.Status
	String string
}

func (*Email) AssignTo

func (src *Email) AssignTo(dst interface{}) error

func (*Email) DecodeBinary

func (dst *Email) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*Email) DecodeText

func (dst *Email) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*Email) EncodeBinary

func (src *Email) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Email) EncodeText

func (src *Email) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Email) Get

func (dst *Email) Get() interface{}

func (*Email) Scan

func (dst *Email) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*Email) Set

func (dst *Email) Set(src interface{}) error

func (*Email) Value

func (src *Email) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type EmailType

type EmailType struct {
	Status pgtype.Status
	V      EmailTypeValue
}

func NewEmailType

func NewEmailType(v EmailTypeValue) EmailType

func ParseEmailType

func ParseEmailType(s string) (EmailType, error)

func (*EmailType) AssignTo

func (src *EmailType) AssignTo(dst interface{}) error

func (*EmailType) DecodeBinary

func (dst *EmailType) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*EmailType) DecodeText

func (dst *EmailType) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*EmailType) EncodeBinary

func (src *EmailType) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*EmailType) EncodeText

func (src *EmailType) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*EmailType) Get

func (src *EmailType) Get() interface{}

func (*EmailType) Scan

func (dst *EmailType) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*EmailType) Set

func (dst *EmailType) Set(src interface{}) error

func (*EmailType) String

func (src *EmailType) String() string

func (*EmailType) Value

func (src *EmailType) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type EmailTypeValue

type EmailTypeValue int
const (
	BackupEmail EmailTypeValue = iota
	ExtraEmail
	PrimaryEmail
)

func (EmailTypeValue) String

func (src EmailTypeValue) String() string

type EnrollmentStatus

type EnrollmentStatus struct {
	Status pgtype.Status
	V      EnrollmentStatusValue
}

func ParseEnrollmentStatus

func ParseEnrollmentStatus(s string) (EnrollmentStatus, error)

func (*EnrollmentStatus) AssignTo

func (src *EnrollmentStatus) AssignTo(dst interface{}) error

func (*EnrollmentStatus) DecodeBinary

func (dst *EnrollmentStatus) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*EnrollmentStatus) DecodeText

func (dst *EnrollmentStatus) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*EnrollmentStatus) EncodeBinary

func (src *EnrollmentStatus) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*EnrollmentStatus) EncodeText

func (src *EnrollmentStatus) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*EnrollmentStatus) Get

func (src *EnrollmentStatus) Get() interface{}

func (*EnrollmentStatus) Scan

func (dst *EnrollmentStatus) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*EnrollmentStatus) Set

func (dst *EnrollmentStatus) Set(src interface{}) error

func (*EnrollmentStatus) String

func (src *EnrollmentStatus) String() string

func (*EnrollmentStatus) Value

func (src *EnrollmentStatus) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type EnrollmentStatusValue

type EnrollmentStatusValue int
const (
	EnrollmentStatusEnrolled EnrollmentStatusValue = iota
	EnrollmentStatusIgnored
	EnrollmentStatusUnenrolled
)

func (EnrollmentStatusValue) String

func (f EnrollmentStatusValue) String() string

type EventAction

type EventAction struct {
	Status pgtype.Status
	V      EventActionValue
}

func NewEventAction

func NewEventAction(v EventActionValue) EventAction

func ParseEventAction

func ParseEventAction(s string) (EventAction, error)

func (*EventAction) AssignTo

func (src *EventAction) AssignTo(dst interface{}) error

func (*EventAction) DecodeBinary

func (dst *EventAction) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*EventAction) DecodeText

func (dst *EventAction) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*EventAction) EncodeBinary

func (src *EventAction) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*EventAction) EncodeText

func (src *EventAction) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*EventAction) Get

func (src *EventAction) Get() interface{}

func (*EventAction) Scan

func (dst *EventAction) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*EventAction) Set

func (dst *EventAction) Set(src interface{}) error

func (*EventAction) String

func (src *EventAction) String() string

func (*EventAction) Value

func (src *EventAction) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type EventActionValue

type EventActionValue int
const (
	CreatedAction EventActionValue = iota
	AddedToCourseAction
	RemovedFromCourseAction
	AppledAction
	UnappledAction
	CommentedAction
	LabeledAction
	UnlabeledAction
	MentionedAction
	PublishedAction
	ReferencedAction
	RenamedAction
)

func (EventActionValue) String

func (f EventActionValue) String() string

type Filename

type Filename struct {
	Status pgtype.Status
	String string
}

func (*Filename) AssignTo

func (src *Filename) AssignTo(dst interface{}) error

func (*Filename) DecodeBinary

func (dst *Filename) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*Filename) DecodeText

func (dst *Filename) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*Filename) EncodeBinary

func (src *Filename) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Filename) EncodeText

func (src *Filename) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Filename) Get

func (dst *Filename) Get() interface{}

func (*Filename) Scan

func (dst *Filename) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*Filename) Set

func (dst *Filename) Set(src interface{}) error

func (*Filename) Value

func (src *Filename) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type Markdown

type Markdown struct {
	Status pgtype.Status
	String string
}

Markdown -

func (*Markdown) AssetRefs

func (src *Markdown) AssetRefs() []*AssetRef

AssetRefs -

func (*Markdown) AssignTo

func (src *Markdown) AssignTo(dst interface{}) error

AssignTo -

func (*Markdown) AtRefs

func (src *Markdown) AtRefs() []*AtRef

AtRefs -

func (*Markdown) CrossStudyRefs

func (src *Markdown) CrossStudyRefs() ([]*CrossStudyRef, error)

CrossStudyRefs -

func (*Markdown) DecodeBinary

func (dst *Markdown) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

DecodeBinary -

func (*Markdown) DecodeText

func (dst *Markdown) DecodeText(ci *pgtype.ConnInfo, src []byte) error

DecodeText -

func (*Markdown) EncodeBinary

func (src *Markdown) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

EncodeBinary -

func (*Markdown) EncodeText

func (src *Markdown) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

EncodeText -

func (*Markdown) Get

func (dst *Markdown) Get() interface{}

Get -

func (*Markdown) NumberRefs

func (src *Markdown) NumberRefs() ([]*NumberRef, error)

NumberRefs -

func (*Markdown) Scan

func (dst *Markdown) Scan(src interface{}) error

Scan - implements the database/sql Scanner interface.

func (*Markdown) Set

func (dst *Markdown) Set(src interface{}) error

Set -

func (*Markdown) ToHTML

func (src *Markdown) ToHTML() string

ToHTML -

func (*Markdown) ToText

func (src *Markdown) ToText() string

ToText -

func (*Markdown) Value

func (src *Markdown) Value() (driver.Value, error)

Value - implements the database/sql/driver Valuer interface.

type NodeType

type NodeType int
const (
	ActivityNodeType NodeType = iota
	ActivityAssetNodeType
	AppledNodeType
	AssetNodeType
	CommentNodeType
	CommentDraftBackupNodeType
	CourseNodeType
	CourseLessonNodeType
	EmailNodeType
	EnrolledNodeType
	EventNodeType
	EVTNodeType
	LabelNodeType
	LabeledNodeType
	LessonNodeType
	LessonDraftBackupNodeType
	NotificationNodeType
	PRTNodeType
	StudyNodeType
	TopicNodeType
	TopicedNodeType
	UserNodeType
	UserAssetNodeType
)

func ParseNodeType

func ParseNodeType(nodeType string) (NodeType, error)

func (*NodeType) Scan

func (nt *NodeType) Scan(value interface{}) (err error)

func (NodeType) String

func (nt NodeType) String() string

func (NodeType) Value

func (nt NodeType) Value() (driver.Value, error)

type NumberRef

type NumberRef struct {
	Number int32
	Index  []int
}

NumberRef -

type OID

type OID struct {
	// Unique part of the OID without the type information.
	Short  string
	Status pgtype.Status
	// Base64 encoded value of the OID.
	String string
	// Type of object for the OID.
	Type string
}

Object ID

func NewOID

func NewOID(objType string) (*OID, error)

func NewOIDFromShort

func NewOIDFromShort(objType, short string) (*OID, error)

func ParseOID

func ParseOID(id string) (*OID, error)

func (*OID) AssignTo

func (src *OID) AssignTo(dst interface{}) error

func (*OID) DBVarName

func (src *OID) DBVarName() string

func (*OID) DecodeBinary

func (dst *OID) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*OID) DecodeText

func (dst *OID) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*OID) EncodeBinary

func (src *OID) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*OID) EncodeText

func (src *OID) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*OID) Get

func (dst *OID) Get() interface{}

func (*OID) MarshalJSON

func (src *OID) MarshalJSON() ([]byte, error)

func (*OID) Scan

func (dst *OID) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*OID) Set

func (dst *OID) Set(src interface{}) error

func (*OID) UnmarshalJSON

func (dst *OID) UnmarshalJSON(b []byte) error

func (*OID) Value

func (src *OID) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type Operation

type Operation struct {
	// Access level for the Operation.
	AccessLevel AccessLevel
	// Type of node for the Operation.
	NodeType NodeType
	Status   pgtype.Status
}

func NewOperation

func NewOperation(al AccessLevel, nt NodeType) *Operation

func ParseOperation

func ParseOperation(operation string) (*Operation, error)

func (*Operation) AssignTo

func (src *Operation) AssignTo(dst interface{}) error

func (*Operation) DecodeBinary

func (dst *Operation) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*Operation) DecodeText

func (dst *Operation) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*Operation) EncodeBinary

func (src *Operation) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Operation) EncodeText

func (src *Operation) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Operation) Get

func (dst *Operation) Get() interface{}

func (*Operation) Scan

func (dst *Operation) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*Operation) Set

func (dst *Operation) Set(src interface{}) error

func (*Operation) String

func (o *Operation) String() string

func (*Operation) UnmarshalJSON

func (dst *Operation) UnmarshalJSON(bs []byte) error

func (*Operation) Value

func (src *Operation) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type Password

type Password struct {
	Bytes  []byte
	Status pgtype.Status
	// contains filtered or unexported fields
}

func NewPassword

func NewPassword(password string) (*Password, error)

func (*Password) AssignTo

func (src *Password) AssignTo(dst interface{}) error

func (*Password) CheckStrength

func (p *Password) CheckStrength(s PasswordStrength) error

func (*Password) CompareToPassword

func (p *Password) CompareToPassword(password string) error

func (*Password) DecodeBinary

func (dst *Password) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*Password) DecodeText

func (dst *Password) DecodeText(ci *pgtype.ConnInfo, src []byte) error

DecodeText only supports the hex format. This has been the default since PostgreSQL 9.0.

func (*Password) EncodeBinary

func (src *Password) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Password) EncodeText

func (src *Password) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Password) Get

func (dst *Password) Get() interface{}

func (*Password) Scan

func (dst *Password) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*Password) Set

func (dst *Password) Set(src interface{}) error

func (*Password) Value

func (src *Password) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type PasswordStrength

type PasswordStrength int
const (
	VeryWeak PasswordStrength = iota
	Weak
	Moderate
	Strong
	VeryStrong
)

type URLSafeName

type URLSafeName struct {
	Status pgtype.Status
	String string
}

func (*URLSafeName) AssignTo

func (src *URLSafeName) AssignTo(dst interface{}) error

func (*URLSafeName) DecodeBinary

func (dst *URLSafeName) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*URLSafeName) DecodeText

func (dst *URLSafeName) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*URLSafeName) EncodeBinary

func (src *URLSafeName) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*URLSafeName) EncodeText

func (src *URLSafeName) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*URLSafeName) Get

func (dst *URLSafeName) Get() interface{}

func (*URLSafeName) Scan

func (dst *URLSafeName) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*URLSafeName) Set

func (dst *URLSafeName) Set(src interface{}) error

func (*URLSafeName) Value

func (src *URLSafeName) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type Username

type Username struct {
	Status pgtype.Status
	String string
}

func (*Username) AssignTo

func (src *Username) AssignTo(dst interface{}) error

func (*Username) DecodeBinary

func (dst *Username) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*Username) DecodeText

func (dst *Username) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*Username) EncodeBinary

func (src *Username) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Username) EncodeText

func (src *Username) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Username) Get

func (dst *Username) Get() interface{}

func (*Username) IsBlacklisted

func (src *Username) IsBlacklisted() (bool, error)

func (*Username) Scan

func (dst *Username) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*Username) Set

func (dst *Username) Set(src interface{}) error

func (*Username) Value

func (src *Username) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type WordName

type WordName struct {
	Status pgtype.Status
	String string
}

func (*WordName) AssignTo

func (src *WordName) AssignTo(dst interface{}) error

func (*WordName) DecodeBinary

func (dst *WordName) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*WordName) DecodeText

func (dst *WordName) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*WordName) EncodeBinary

func (src *WordName) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*WordName) EncodeText

func (src *WordName) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*WordName) Get

func (dst *WordName) Get() interface{}

func (*WordName) Scan

func (dst *WordName) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*WordName) Set

func (dst *WordName) Set(src interface{}) error

func (*WordName) Value

func (src *WordName) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

type WordsName

type WordsName struct {
	Status pgtype.Status
	String string
}

func (*WordsName) AssignTo

func (src *WordsName) AssignTo(dst interface{}) error

func (*WordsName) DecodeBinary

func (dst *WordsName) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*WordsName) DecodeText

func (dst *WordsName) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*WordsName) EncodeBinary

func (src *WordsName) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*WordsName) EncodeText

func (src *WordsName) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*WordsName) Get

func (dst *WordsName) Get() interface{}

func (*WordsName) Scan

func (dst *WordsName) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*WordsName) Set

func (dst *WordsName) Set(src interface{}) error

func (*WordsName) Value

func (src *WordsName) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

Jump to

Keyboard shortcuts

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