entity

package
v0.0.0-...-c835f56 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publication

type Publication struct {
	UUID          uuid.UUID `json:"uuid"`
	Name          string    `json:"name"`
	Description   string    `json:"description"`
	LanguageCode  string    `json:"language_code"`
	PublisherUUID uuid.UUID `json:"publisher_uuid"`
	Type          string    `json:"publication_type"`
}

Publication defines minimal publication type swagger:model

func NewPublication

func NewPublication(name string, description string, languageCode string, publisherUUID uuid.UUID, publicationType string) (*Publication, error)

NewPublication creates Publication with new UUID

func (*Publication) String

func (p *Publication) String() string

type Publisher

type Publisher struct {
	UUID uuid.UUID `json:"uuid"`
	Name string    `json:"name"`
	URL  string    `json:"url"`
}

Publisher defines minimal publisher type swagger:model

func NewPublisher

func NewPublisher(name string, url string) (*Publisher, error)

NewPublisher creates Publisher with new UUID

func (*Publisher) String

func (p *Publisher) String() string

Jump to

Keyboard shortcuts

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