properties

package
Version: v0.0.0-...-22453f8 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2016 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"
)
View Source
const (
	CanonicalNameParameterName  ParameterName = "CN"
	TimeZoneIdPropertyName                    = "TZID"
	ValuePropertyName                         = "VALUE"
	AlternateRepresentationName               = "ALTREP"
)

Variables

This section is empty.

Functions

func MarshalProperty

func MarshalProperty(p *Property) string

Types

type CanDecodeParams

type CanDecodeParams interface {
	DecodeICalParams(Params) error
}

type CanDecodeValue

type CanDecodeValue interface {
	DecodeICalValue(string) 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 ParameterName

type ParameterName string

type Params

type Params map[ParameterName]string

type Property

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

func NewProperty

func NewProperty(name, value string) *Property

func PropertyFromInterface

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

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL