domain

package
v0.0.0-...-df3562f Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioID

type AudioID struct {
	Value int `validate:"required,gte=1"`
}

func NewAudioID

func NewAudioID(value int) (*AudioID, error)

func (*AudioID) Int

func (v *AudioID) Int() int

func (*AudioID) IsAudioID

func (v *AudioID) IsAudioID() bool

type AudioModel

type AudioModel struct {
	AudioID *AudioID
	Lang5   *libdomain.Lang5
	Text    string `validate:"required"`
	Content string `validate:"required"`
	Length  time.Duration
}

func NewAudioModel

func NewAudioModel(audioID *AudioID, Lang5 *libdomain.Lang5, text, content string, length time.Duration) (*AudioModel, error)

Jump to

Keyboard shortcuts

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