biz

package
v0.0.0-...-f12ea2b Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_biz_do_proto protoreflect.FileDescriptor

ProviderSet is biz providers.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Id          uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title       string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Director    string `protobuf:"bytes,4,opt,name=director,proto3" json:"director,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata) Descriptor deprecated

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

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetDescription

func (x *Metadata) GetDescription() string

func (*Metadata) GetDirector

func (x *Metadata) GetDirector() string

func (*Metadata) GetId

func (x *Metadata) GetId() uint64

func (*Metadata) GetTitle

func (x *Metadata) GetTitle() 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 MetadataRepo

type MetadataRepo interface {
	GetMetadata(ctx context.Context, id uint64) (data *Metadata, err error)
}

type MetadataUsecase

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

func NewMetadataUsecase

func NewMetadataUsecase(repo MetadataRepo, logger log.Logger) *MetadataUsecase

func (*MetadataUsecase) GetMetadata

func (mu *MetadataUsecase) GetMetadata(ctx context.Context, id uint64) (metadata *Metadata, err error)

Jump to

Keyboard shortcuts

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