domain

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Key_name = map[int32]string{
		0:  "KEY_UNKNOWN",
		1:  "KEY_A",
		2:  "KEY_B_FLAT",
		3:  "KEY_B",
		4:  "KEY_C",
		5:  "KEY_C_SHARP",
		6:  "KEY_D",
		7:  "KEY_D_SHARP",
		8:  "KEY_E",
		9:  "KEY_F",
		10: "KEY_F_SHARP",
		11: "KEY_G",
		12: "KEY_G_SHARP",
		13: "KEY_MIXED",
	}
	Key_value = map[string]int32{
		"KEY_UNKNOWN": 0,
		"KEY_A":       1,
		"KEY_B_FLAT":  2,
		"KEY_B":       3,
		"KEY_C":       4,
		"KEY_C_SHARP": 5,
		"KEY_D":       6,
		"KEY_D_SHARP": 7,
		"KEY_E":       8,
		"KEY_F":       9,
		"KEY_F_SHARP": 10,
		"KEY_G":       11,
		"KEY_G_SHARP": 12,
		"KEY_MIXED":   13,
	}
)

Enum value maps for Key.

View Source
var (
	Tonality_name = map[int32]string{
		0: "TONALITY_UNKNOWN",
		1: "TONALITY_MAJOR",
		2: "TONALITY_MINOR",
		3: "TONALITY_MIXED",
	}
	Tonality_value = map[string]int32{
		"TONALITY_UNKNOWN": 0,
		"TONALITY_MAJOR":   1,
		"TONALITY_MINOR":   2,
		"TONALITY_MIXED":   3,
	}
)

Enum value maps for Tonality.

View Source
var File_api_src_domain_domain_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Artist

type Artist struct {
	Id       string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Image    string    `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	Metadata *Metadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Artist) Descriptor deprecated

func (*Artist) Descriptor() ([]byte, []int)

Deprecated: Use Artist.ProtoReflect.Descriptor instead.

func (*Artist) GetId

func (x *Artist) GetId() string

func (*Artist) GetImage

func (x *Artist) GetImage() string

func (*Artist) GetMetadata

func (x *Artist) GetMetadata() *Metadata

func (*Artist) GetName

func (x *Artist) GetName() string

func (*Artist) ProtoMessage

func (*Artist) ProtoMessage()

func (*Artist) ProtoReflect

func (x *Artist) ProtoReflect() protoreflect.Message

func (*Artist) Reset

func (x *Artist) Reset()

func (*Artist) String

func (x *Artist) String() string

type Key

type Key int32
const (
	Key_KEY_UNKNOWN Key = 0
	Key_KEY_A       Key = 1
	Key_KEY_B_FLAT  Key = 2
	Key_KEY_B       Key = 3
	Key_KEY_C       Key = 4
	Key_KEY_C_SHARP Key = 5
	Key_KEY_D       Key = 6
	Key_KEY_D_SHARP Key = 7
	Key_KEY_E       Key = 8
	Key_KEY_F       Key = 9
	Key_KEY_F_SHARP Key = 10
	Key_KEY_G       Key = 11
	Key_KEY_G_SHARP Key = 12
	Key_KEY_MIXED   Key = 13
)

func (Key) Descriptor

func (Key) Descriptor() protoreflect.EnumDescriptor

func (Key) Enum

func (x Key) Enum() *Key

func (Key) EnumDescriptor deprecated

func (Key) EnumDescriptor() ([]byte, []int)

Deprecated: Use Key.Descriptor instead.

func (Key) Number

func (x Key) Number() protoreflect.EnumNumber

func (Key) String

func (x Key) String() string

func (Key) Type

func (Key) Type() protoreflect.EnumType

type Metadata

type Metadata struct {
	CreatedAt string `protobuf:"bytes,1,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt string `protobuf:"bytes,2,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata) Descriptor deprecated

func (*Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetCreatedAt

func (x *Metadata) GetCreatedAt() string

func (*Metadata) GetUpdatedAt

func (x *Metadata) GetUpdatedAt() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type Song

type Song struct {
	Id       string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title    string    `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Artist   *Artist   `protobuf:"bytes,3,opt,name=artist,proto3" json:"artist,omitempty"`
	Key      Key       `protobuf:"varint,4,opt,name=key,proto3,enum=domain.Key" json:"key,omitempty"`
	Tonality Tonality  `protobuf:"varint,5,opt,name=tonality,proto3,enum=domain.Tonality" json:"tonality,omitempty"`
	Metadata *Metadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Song) Descriptor deprecated

func (*Song) Descriptor() ([]byte, []int)

Deprecated: Use Song.ProtoReflect.Descriptor instead.

func (*Song) GetArtist

func (x *Song) GetArtist() *Artist

func (*Song) GetId

func (x *Song) GetId() string

func (*Song) GetKey

func (x *Song) GetKey() Key

func (*Song) GetMetadata

func (x *Song) GetMetadata() *Metadata

func (*Song) GetTitle

func (x *Song) GetTitle() string

func (*Song) GetTonality

func (x *Song) GetTonality() Tonality

func (*Song) ProtoMessage

func (*Song) ProtoMessage()

func (*Song) ProtoReflect

func (x *Song) ProtoReflect() protoreflect.Message

func (*Song) Reset

func (x *Song) Reset()

func (*Song) String

func (x *Song) String() string

type Tonality

type Tonality int32
const (
	Tonality_TONALITY_UNKNOWN Tonality = 0
	Tonality_TONALITY_MAJOR   Tonality = 1
	Tonality_TONALITY_MINOR   Tonality = 2
	Tonality_TONALITY_MIXED   Tonality = 3
)

func (Tonality) Descriptor

func (Tonality) Descriptor() protoreflect.EnumDescriptor

func (Tonality) Enum

func (x Tonality) Enum() *Tonality

func (Tonality) EnumDescriptor deprecated

func (Tonality) EnumDescriptor() ([]byte, []int)

Deprecated: Use Tonality.Descriptor instead.

func (Tonality) Number

func (x Tonality) Number() protoreflect.EnumNumber

func (Tonality) String

func (x Tonality) String() string

func (Tonality) Type

Jump to

Keyboard shortcuts

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