xml

package
v0.0.0-...-fa5135e Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	r.Representation `xml:"-"`

	UUID              u.UUID     `xml:"uuid"`
	PrimaryCredential string     `xml:"primaryCredential"`
	GivenName         string     `xml:"givenName"`
	Surname           string     `xml:"surname"`
	CreatedAt         time.Time  `xml:"createdAt"`
	UpdatedAt         time.Time  `xml:"updatedAt"`
	DeletedAt         *time.Time `xml:"deletedAt"`
}

func NewAccount

func NewAccount(a domain.Account) Account

NewAccount constructs a new account representation.

func (Account) Bytes

func (a Account) Bytes() ([]byte, error)

Bytes provides the representation as bytes.

func (Account) FromBytes

func (a Account) FromBytes(b []byte) error

FromBytes constructs the representation from bytes.

type Error

type Error struct {
	r.Representation

	// Message represents a user friendly message.
	Message string `xml:"message"`

	// DetailedMessage represents an engineer friendly message.
	DetailedMessage string `xml:"detailedMessage"`
}

func (Error) Bytes

func (e Error) Bytes() ([]byte, error)

Bytes provides the representation as bytes.

func (Error) FromBytes

func (e Error) FromBytes(b []byte) error

FromBytes constructs the representation from bytes.

Jump to

Keyboard shortcuts

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