parameter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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)

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)

type Base

type Base interface {
	// contains filtered or unexported methods
}

type CalenderUserType

type CalenderUserType struct {
	Type  CalenderUserTypeKind
	Value string
}

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

func NewCalenderUserType

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

type CalenderUserTypeKind

type CalenderUserTypeKind string

CalenderUserType is defined in https://www.iana.org/assignments/icalendar/icalendar.xhtml#calendar-user-types

const (
	CalenderUserTypeKindIndividual CalenderUserTypeKind = "INDIVIDUAL"
	CalenderUserTypeKindGroup      CalenderUserTypeKind = "GROUP"
	CalenderUserTypeKindResource   CalenderUserTypeKind = "RESOURCE"
	CalenderUserTypeKindRoom       CalenderUserTypeKind = "ROOM"
	CalenderUserTypeKindUnknown    CalenderUserTypeKind = "UNKNOWN"
	CalenderUserTypeKindXToken     CalenderUserTypeKind = "XToken"
)

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

type Container

type Container map[TypeName][]Base

func (Container) GetTimezone

func (c Container) GetTimezone() string

type Delegatee

type Delegatee struct {
	Addresses []types.CalenderUserAddress
}

func NewDelegatee

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

type Delegator

type Delegator struct {
	Addresses []types.CalenderUserAddress
}

func NewDelegator

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

type DirectoryEntry

type DirectoryEntry struct {
	URI types.URI
}

func NewDirectoryEntry

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

type FormatType

type FormatType struct {
	Value types.Text
}

func NewFormatType

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

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)

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)

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)

type Membership

type Membership struct {
	URIs []types.CalenderUserAddress
}

func NewMembership

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

type ParticipationRole

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

func NewParticipationRole

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

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.ComponentType
	Type  ParticipationStatusType
	Value string
}

func NewParticipationStatus

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

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)

type RecurrenceIDRange

type RecurrenceIDRange struct {
}

func NewRecurrenceIDRange

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

type ReferenceTimezone

type ReferenceTimezone struct {
	Value string
}

func NewReferenceTimezone

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

type RelationshipType

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

func NewRelationshipType

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

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)

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

type XParam

type XParam struct {
	Parameter string
	Value     []string
}

func NewXParam

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

Jump to

Keyboard shortcuts

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