models

package
v0.0.0-...-aef14cd Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FavoritesSliceToDto

func FavoritesSliceToDto(favorites []Favorites) (result []dto.Favorites)

Types

type Asset

type Asset struct {
	// contains filtered or unexported fields
}

func AssetFromEntity

func AssetFromEntity(entity entity.Asset) Asset

func (Asset) Isin

func (a Asset) Isin() string

func (Asset) ToEntity

func (a Asset) ToEntity() entity.Asset

type Favorites

type Favorites struct {
	// contains filtered or unexported fields
}

func FavoritesFromDto

func FavoritesFromDto(dto dto.Favorites, personalKey, upk string) Favorites

func FavoritesFromEntity

func FavoritesFromEntity(entity entity.Favorites) Favorites

func FavoritesFromProto

func FavoritesFromProto(proto *pb.Favorites) Favorites

func (Favorites) Asset

func (f Favorites) Asset() Asset

func (Favorites) ToDto

func (f Favorites) ToDto() dto.Favorites

func (Favorites) ToEntity

func (f Favorites) ToEntity() entity.Favorites

func (Favorites) ToProto

func (f Favorites) ToProto() *pb.Favorites

func (Favorites) User

func (f Favorites) User() User

func (Favorites) WithUpk

func (f Favorites) WithUpk(upk string) Favorites

type User

type User struct {
	// contains filtered or unexported fields
}

func MakeUser

func MakeUser(personalKey, upk string) User

func UserFromEntity

func UserFromEntity(entity entity.User) User

func UserFromProto

func UserFromProto(proto *pb.User) User

func (User) PersonalKey

func (u User) PersonalKey() string

func (User) ToEntity

func (u User) ToEntity() entity.User

func (User) Upk

func (u User) Upk() string

Jump to

Keyboard shortcuts

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