properties

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UIDPropertyName                 PropertyName = "UID"
	CommentPropertyName                          = "COMMENT"
	OrganizerPropertyName                        = "ORGANIZER"
	AttendeePropertyName                         = "ATTENDEE"
	ExceptionDateTimesPropertyName               = "EXDATE"
	RecurrenceDateTimesPropertyName              = "RDATE"
	RecurrenceRulePropertyName                   = "RRULE"
	LocationPropertyName                         = "LOCATION"
	EmailPropertyName                            = "EMAIL"
	PhonePropertyName                            = "TEL"
	NamePropertyName                             = "N"
	OrganizationPropertyName                     = "ORG"
	ParameterType                                = "TYPE"
	AddressBookServerMemberName                  = "X-ADDRESSBOOKSERVER-MEMBER"
	CategoriesPropertyName                       = "CATEGORIES"
	AlarmTriggerPropertyName                     = "TRIGGER"
	AttachmentPropertyName                       = "ATTACH"
)
View Source
const (
	CanonicalNameParameterName  ParameterName = "CN"
	TimeZoneIdPropertyName                    = "TZID"
	ValuePropertyName                         = "VALUE"
	AlternateRepresentationName               = "ALTREP"
	ABLabel                                   = "X_ABLABEL"
	ParticipationStatusName                   = "PARTSTAT"
	EmailParameterName                        = "EMAIL"
	ParticipantRoleName                       = "ROLE"
	RSVPName                                  = "RSVP"
	ScheduleStatusName                        = "SCHEDULE-STATUS"
	RelatedPropertyName                       = "RELATED"
	FreeBusyTypeParameterName                 = "FBTYPE"
	EncodingPropertyName                      = "ENCODING"
	FmtTypePropertyName                       = "FMTTYPE"
	SizePropertyName                          = "SIZE"
	FilenamePropertyName                      = "FILENAME"
)

Variables

This section is empty.

Functions

func MarshalProperty

func MarshalProperty(p *Property) string

func PropertyFromInterface

func PropertyFromInterface(target interface{}) (p *Property, adds []*Property, err error)

Types

type CanDecodeParams

type CanDecodeParams interface {
	DecodeICalParams(Params) error
}

type CanDecodeValue

type CanDecodeValue interface {
	DecodeICalValue(string) error
}

type CanEncodeAdditionalProperties

type CanEncodeAdditionalProperties interface {
	EncodeAdditionalICalProperties() ([]*Property, error)
}

type CanEncodeName

type CanEncodeName interface {
	EncodeICalName() (PropertyName, error)
}

type CanEncodeParams

type CanEncodeParams interface {
	EncodeICalParams() (Params, error)
}

type CanEncodeTag

type CanEncodeTag interface {
	EncodeICalTag() (string, error)
}

type CanEncodeValue

type CanEncodeValue interface {
	EncodeICalValue() (string, error)
}

type CanValidateValue

type CanValidateValue interface {
	ValidateICalValue() error
}

type Param

type Param struct {
	Name  ParameterName
	Value string
}

type ParameterName

type ParameterName string

type Params

type Params []Param

type Property

type Property struct {
	Name                PropertyName
	Value, DefaultValue string
	Params              Params
	OmitEmpty, Required bool
	Prefix              string
}

func NewProperty

func NewProperty(name, value string) *Property

func PropertyFromStructField

func PropertyFromStructField(fs reflect.StructField) (p *Property)

func UnmarshalProperty

func UnmarshalProperty(line string) *Property

func (*Property) HasNameAndValue

func (p *Property) HasNameAndValue() bool

func (*Property) Merge

func (p *Property) Merge(override *Property)

type PropertyName

type PropertyName string

func (PropertyName) Equals

func (p PropertyName) Equals(test string) bool

Jump to

Keyboard shortcuts

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