parameter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlarmTriggerRelationship

type AlarmTriggerRelationship struct {
	IsStart bool // value must be START or END, so true means Start
}

func NewAlarmTriggerRelationship

func NewAlarmTriggerRelationship(value string) (*AlarmTriggerRelationship, error)

func (*AlarmTriggerRelationship) String added in v0.1.0

func (atr *AlarmTriggerRelationship) String() string

type AlternateTextRepresentation

type AlternateTextRepresentation struct {
	URI types.URI
}

AlternateTextRepresentation is defined in https://tools.ietf.org/html/rfc5545#section-3.2.1

func NewAlternateTextRepresentation

func NewAlternateTextRepresentation(value string) (*AlternateTextRepresentation, error)

func (*AlternateTextRepresentation) String added in v0.1.0

func (a *AlternateTextRepresentation) String() string

type Base

type Base interface {
	String() string
	// contains filtered or unexported methods
}

type CalendarUserTypeKind added in v0.0.2

type CalendarUserTypeKind string

CalendarUserTypeKind is types of calendar https://www.iana.org/assignments/icalendar/icalendar.xhtml#calendar-user-types

const (
	CalendarUserTypeKindIndividual CalendarUserTypeKind = "INDIVIDUAL"
	CalendarUserTypeKindGroup      CalendarUserTypeKind = "GROUP"
	CalendarUserTypeKindResource   CalendarUserTypeKind = "RESOURCE"
	CalendarUserTypeKindRoom       CalendarUserTypeKind = "ROOM"
	CalendarUserTypeKindUnknown    CalendarUserTypeKind = "UNKNOWN"
	CalendarUserTypeKindXToken     CalendarUserTypeKind = "XToken"
)

type CalenderUserType

type CalenderUserType struct {
	Type  CalendarUserTypeKind
	Value string
}

CalenderUserType is defined in https://tools.ietf.org/html/rfc5545#section-3.2.3

func NewCalenderUserType

func NewCalenderUserType(value string) (*CalenderUserType, error)

func (*CalenderUserType) String added in v0.1.0

func (cut *CalenderUserType) String() string

type CommonName

type CommonName struct {
	Value types.Text
}

CommonName is defined in https://tools.ietf.org/html/rfc5545#section-3.2.2

func NewCommonName

func NewCommonName(value string) *CommonName

func (*CommonName) String added in v0.1.0

func (cn *CommonName) String() string

type Container

type Container map[TypeName][]Base

func (Container) GetTimezone

func (c Container) GetTimezone() string

func (Container) String added in v0.1.0

func (c Container) String() string

type Delegatee

type Delegatee struct {
	Addresses []types.CalenderUserAddress
}

func NewDelegatee

func NewDelegatee(values []string) (*Delegatee, error)

func (*Delegatee) String added in v0.1.0

func (d *Delegatee) String() string

type Delegator

type Delegator struct {
	Addresses []types.CalenderUserAddress
}

func NewDelegator

func NewDelegator(values []string) (*Delegator, error)

func (*Delegator) String added in v0.1.0

func (d *Delegator) String() string

type DirectoryEntry

type DirectoryEntry struct {
	URI types.URI
}

func NewDirectoryEntry

func NewDirectoryEntry(value string) (*DirectoryEntry, error)

func (*DirectoryEntry) String added in v0.1.0

func (de *DirectoryEntry) String() string

type FormatType

type FormatType struct {
	Value types.Text
}

func NewFormatType

func NewFormatType(value string) (*FormatType, error)

func (*FormatType) String added in v0.1.0

func (ft *FormatType) String() string

type FreeBusyTimeType

type FreeBusyTimeType struct {
	Type  FreeBusyTimeTypeKind
	Value string // for X-NAME
}

FreeBusyTimeType is definded in https://tools.ietf.org/html/rfc5545#section-3.2.9

func NewFreeBusyTimeType

func NewFreeBusyTimeType(value string) (*FreeBusyTimeType, error)

func (*FreeBusyTimeType) String added in v0.1.0

func (fbtt *FreeBusyTimeType) String() string

type FreeBusyTimeTypeKind

type FreeBusyTimeTypeKind string
const (
	FreeBusyTimeTypeKindFree            FreeBusyTimeTypeKind = "FREE"
	FreeBusyTimeTypeKindBusy            FreeBusyTimeTypeKind = "BUSY"
	FreeBusyTimeTypeKindBusyUnavailable FreeBusyTimeTypeKind = "BUSY-UNAVAILABLE"
	FreeBusyTimeTypeKindBusyTentative   FreeBusyTimeTypeKind = "BUSY-TENTATIVE"
	FreeBusyTimeTypeKindXName           FreeBusyTimeTypeKind = "X-NAME"
)

type InlineEncoding

type InlineEncoding struct {
	Type  InlineEncodingType
	Value string // for x-name
}

func NewInlineEncoding

func NewInlineEncoding(value string) (*InlineEncoding, error)

func (*InlineEncoding) String added in v0.1.0

func (ie *InlineEncoding) String() string

type InlineEncodingType

type InlineEncodingType string
const (
	InlineEncodingType8BIT   InlineEncodingType = "8BIT"
	InlineEncodingTypeBASE64 InlineEncodingType = "BASE64"
	InlineEncodingTypeXName  InlineEncodingType = "X-NAME"
)

type Language

type Language struct {
	Tag language.Tag
}

func NewLanguage

func NewLanguage(value string) (*Language, error)

func (*Language) String added in v0.1.0

func (l *Language) String() string

type Membership

type Membership struct {
	URIs []types.CalenderUserAddress
}

func NewMembership

func NewMembership(values []string) (*Membership, error)

func (*Membership) String added in v0.1.0

func (m *Membership) String() string

type ParticipationRole

type ParticipationRole struct {
	Type  ParticipationRoleType
	Value string // for x-token
}

func NewParticipationRole

func NewParticipationRole(value string) (*ParticipationRole, error)

func (*ParticipationRole) String added in v0.1.0

func (pr *ParticipationRole) String() string

type ParticipationRoleType

type ParticipationRoleType string
const (
	ParticipationRoleTypeChair                ParticipationRoleType = "CHAIR"
	ParticipationRoleTypeRequestedParticipant ParticipationRoleType = "REQ-PARTICIPANT"
	ParticipationRoleTypeOptionalParticipant  ParticipationRoleType = "OPT-PARTICIPANT"
	ParticipationRoleTypeNonParticipant       ParticipationRoleType = "NON-PARTICIPANT"
	ParticipationRoleTypeXName                ParticipationRoleType = "X-NAME"
)

type ParticipationStatus

type ParticipationStatus struct {
	Kind  component.Type
	Type  ParticipationStatusType
	Value string
}

func NewParticipationStatus

func NewParticipationStatus(value string, kind component.Type) (*ParticipationStatus, error)

func (*ParticipationStatus) String added in v0.1.0

func (ps *ParticipationStatus) String() string

type ParticipationStatusType

type ParticipationStatusType string
const (
	ParticipationStatusTypeNeedsAction ParticipationStatusType = "NEEDS-ACTION"
	ParticipationStatusTypeAccepted    ParticipationStatusType = "ACCEPTED "
	ParticipationStatusTypeDeclined    ParticipationStatusType = "DECLINED"
	ParticipationStatusTypeTentative   ParticipationStatusType = "TENTATIVE"
	ParticipationStatusTypeDelegated   ParticipationStatusType = "DELEGATED"
	ParticipationStatusTypeCompleted   ParticipationStatusType = "COMPLETED"
	ParticipationStatusTypeInProcess   ParticipationStatusType = "IN-PROCESS"
	ParticipationStatusTypeXToken      ParticipationStatusType = "XToken"
)

type RSVP

type RSVP struct {
	Value types.Boolean
}

func NewRSVP

func NewRSVP(value string) (*RSVP, error)

func (*RSVP) String added in v0.1.0

func (rsvp *RSVP) String() string

type RecurrenceIDRange

type RecurrenceIDRange struct {
}

func NewRecurrenceIDRange

func NewRecurrenceIDRange(value string) (*RecurrenceIDRange, error)

func (*RecurrenceIDRange) String added in v0.1.0

func (ridr *RecurrenceIDRange) String() string

type ReferenceTimezone

type ReferenceTimezone struct {
	Value string
}

func NewReferenceTimezone

func NewReferenceTimezone(value string) (*ReferenceTimezone, error)

func (*ReferenceTimezone) String added in v0.1.0

func (rtz *ReferenceTimezone) String() string

type RelationshipType

type RelationshipType struct {
	Type  RelationshipTypeKind
	Value string // for x-name
}

func NewRelationshipType

func NewRelationshipType(value string) (*RelationshipType, error)

func (*RelationshipType) String added in v0.1.0

func (rt *RelationshipType) String() string

type RelationshipTypeKind

type RelationshipTypeKind string
const (
	RelationshipTypeKindParent  RelationshipTypeKind = "PARENT"
	RelationshipTypeKindChild   RelationshipTypeKind = "CHILD"
	RelationshipTypeKindSibling RelationshipTypeKind = "SIBLING"
	RelationshipTypeKindXName   RelationshipTypeKind = "X-NAME"
)

type SentBy

type SentBy struct {
	Address types.CalenderUserAddress
}

func NewSentBy

func NewSentBy(value string) (*SentBy, error)

func (*SentBy) String added in v0.1.0

func (sb *SentBy) String() string

type TypeName

type TypeName string
const (
	TypeNameAlternateTextRepresentation TypeName = "ALTREP"
	TypeNameCommonName                  TypeName = "CN"
	TypeNameCalenderUserType            TypeName = "CUTYPE"
	TypeNameDelegator                   TypeName = "DELEGATED-FROM"
	TypeNameDelegatee                   TypeName = "DELEGATED-TO"
	TypeNameDirectoryEntry              TypeName = "DIR"
	TypeNameInlineEncoding              TypeName = "ENCODING"
	TypeNameFormatType                  TypeName = "FMTTYPE"
	TypeNameFreeBusyTimeType            TypeName = "FBTYPE"
	TypeNameLanguage                    TypeName = "LANGUAGE"
	TypeNameMembership                  TypeName = "MEMBER"
	TypeNameParticipationStatus         TypeName = "PARTSTAT"
	TypeNameRecurrenceIDRange           TypeName = "RANGE"
	TypeNameAlarmTriggerRelationship    TypeName = "RELATED"
	TypeNameRelationshipType            TypeName = "RELTYPE"
	TypeNameParticipationRole           TypeName = "ROLE"
	TypeNameRSVP                        TypeName = "RSVP"
	TypeNameSentBy                      TypeName = "SENT-BY"
	TypeNameReferenceTimezone           TypeName = "TZID"
	TypeNameValueType                   TypeName = "VALUE"
)

type ValueType

type ValueType struct {
	Value string
}

func NewValueType

func NewValueType(value string) *ValueType

func (*ValueType) String added in v0.1.0

func (vt *ValueType) String() string

type XParam

type XParam struct {
	Parameter string
	Value     []string
}

func NewXParam

func NewXParam(param string, values []string) *XParam

func (*XParam) String added in v0.1.0

func (xp *XParam) String() string

Jump to

Keyboard shortcuts

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