iso

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 6 Imported by: 0

README

iso

import "github.com/Azure/iot-operations-sdks/go/protocol/iso"

Index

type ByteSlice

Wrapper for the native Go byte slice that will serialize to Base64.

type ByteSlice []byte

func (ByteSlice) MarshalText
func (byteSlice ByteSlice) MarshalText() ([]byte, error)

MarshalText marshals the byte slice to a Base64 string.

func (*ByteSlice) UnmarshalText
func (byteSlice *ByteSlice) UnmarshalText(b []byte) error

UnmarshalText unmarshals the byte slice from a Base64 string.

type Date

Date is a date in ISO 8601 format, per RFC 3339.

type Date time.Time

func (Date) MarshalText
func (d Date) MarshalText() ([]byte, error)

MarshalText marshals the date to an ISO 8601 string.

func (Date) String
func (d Date) String() string

String returns the date to an ISO 8601 string.

func (*Date) UnmarshalText
func (d *Date) UnmarshalText(b []byte) error

UnmarshalText unmarshals the date from an ISO 8601 string.

type DateTime

DateTime is a date and time in ISO 8601 format, per RFC 3339.

type DateTime time.Time

func (DateTime) MarshalText
func (dt DateTime) MarshalText() ([]byte, error)

MarshalText marshals the date-time to an ISO 8601 string.

func (DateTime) String
func (dt DateTime) String() string

String returns the date-time to an ISO 8601 string.

func (*DateTime) UnmarshalText
func (dt *DateTime) UnmarshalText(b []byte) error

UnmarshalText unmarshals the date-time from an ISO 8601 string.

type Duration

Duration is a duration in ISO 8601 format.

type Duration time.Duration

func (Duration) MarshalText
func (d Duration) MarshalText() ([]byte, error)

MarshalText marshals the duration to an ISO 8601 string.

func (Duration) String
func (d Duration) String() string

String returns the duration to an ISO 8601 string.

func (*Duration) UnmarshalText
func (d *Duration) UnmarshalText(b []byte) error

UnmarshalText unmarshals the duration from an ISO 8601 string.

type Time

Time is a time in ISO 8601 format, per RFC 3339.

type Time time.Time

func (Time) MarshalText
func (t Time) MarshalText() ([]byte, error)

MarshalText marshals the time to an ISO 8601 string.

func (Time) String
func (t Time) String() string

String returns the time to an ISO 8601 string.

func (*Time) UnmarshalText
func (t *Time) UnmarshalText(b []byte) error

UnmarshalText unmarshals the time from an ISO 8601 string.

Generated by gomarkdoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteSlice added in v0.1.1

type ByteSlice []byte

Wrapper for the native Go byte slice that will serialize to Base64.

func (ByteSlice) MarshalText added in v0.1.1

func (byteSlice ByteSlice) MarshalText() ([]byte, error)

MarshalText marshals the byte slice to a Base64 string.

func (*ByteSlice) UnmarshalText added in v0.1.1

func (byteSlice *ByteSlice) UnmarshalText(b []byte) error

UnmarshalText unmarshals the byte slice from a Base64 string.

type Date

type Date time.Time

Date is a date in ISO 8601 format, per RFC 3339.

func (Date) MarshalText

func (d Date) MarshalText() ([]byte, error)

MarshalText marshals the date to an ISO 8601 string.

func (Date) String

func (d Date) String() string

String returns the date to an ISO 8601 string.

func (*Date) UnmarshalText

func (d *Date) UnmarshalText(b []byte) error

UnmarshalText unmarshals the date from an ISO 8601 string.

type DateTime

type DateTime time.Time

DateTime is a date and time in ISO 8601 format, per RFC 3339.

func (DateTime) MarshalText

func (dt DateTime) MarshalText() ([]byte, error)

MarshalText marshals the date-time to an ISO 8601 string.

func (DateTime) String

func (dt DateTime) String() string

String returns the date-time to an ISO 8601 string.

func (*DateTime) UnmarshalText

func (dt *DateTime) UnmarshalText(b []byte) error

UnmarshalText unmarshals the date-time from an ISO 8601 string.

type Duration

type Duration time.Duration

Duration is a duration in ISO 8601 format.

func (Duration) MarshalText

func (d Duration) MarshalText() ([]byte, error)

MarshalText marshals the duration to an ISO 8601 string.

func (Duration) String

func (d Duration) String() string

String returns the duration to an ISO 8601 string.

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(b []byte) error

UnmarshalText unmarshals the duration from an ISO 8601 string.

type Time

type Time time.Time

Time is a time in ISO 8601 format, per RFC 3339.

func (Time) MarshalText

func (t Time) MarshalText() ([]byte, error)

MarshalText marshals the time to an ISO 8601 string.

func (Time) String

func (t Time) String() string

String returns the time to an ISO 8601 string.

func (*Time) UnmarshalText

func (t *Time) UnmarshalText(b []byte) error

UnmarshalText unmarshals the time from an ISO 8601 string.

Jump to

Keyboard shortcuts

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