scraper_model

package
v0.0.0-...-7253cd6 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: BSL-1.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_scraper_model_v1_anime_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Anime

type Anime struct {
	Image       string   `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	Title       string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Status      string   `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	Episodes    string   `protobuf:"bytes,4,opt,name=episodes,proto3" json:"episodes,omitempty"`
	Genres      []string `protobuf:"bytes,5,rep,name=genres,proto3" json:"genres,omitempty"`
	VoiceActing []string `protobuf:"bytes,6,rep,name=voice_acting,json=voiceActing,proto3" json:"voice_acting,omitempty"`
	Synonyms    []string `protobuf:"bytes,7,rep,name=synonyms,proto3" json:"synonyms,omitempty"`
	Rating      float32  `protobuf:"fixed32,8,opt,name=rating,proto3" json:"rating,omitempty"`
	// contains filtered or unexported fields
}

func (*Anime) Descriptor deprecated

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

Deprecated: Use Anime.ProtoReflect.Descriptor instead.

func (*Anime) GetEpisodes

func (x *Anime) GetEpisodes() string

func (*Anime) GetGenres

func (x *Anime) GetGenres() []string

func (*Anime) GetImage

func (x *Anime) GetImage() string

func (*Anime) GetRating

func (x *Anime) GetRating() float32

func (*Anime) GetStatus

func (x *Anime) GetStatus() string

func (*Anime) GetSynonyms

func (x *Anime) GetSynonyms() []string

func (*Anime) GetTitle

func (x *Anime) GetTitle() string

func (*Anime) GetVoiceActing

func (x *Anime) GetVoiceActing() []string

func (*Anime) ProtoMessage

func (*Anime) ProtoMessage()

func (*Anime) ProtoReflect

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

func (*Anime) Reset

func (x *Anime) Reset()

func (*Anime) String

func (x *Anime) String() string

func (*Anime) Validate

func (m *Anime) Validate() error

Validate checks the field values on Anime with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Anime) ValidateAll

func (m *Anime) ValidateAll() error

ValidateAll checks the field values on Anime with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AnimeMultiError, or nil if none found.

type AnimeMultiError

type AnimeMultiError []error

AnimeMultiError is an error wrapping multiple validation errors returned by Anime.ValidateAll() if the designated constraints aren't met.

func (AnimeMultiError) AllErrors

func (m AnimeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AnimeMultiError) Error

func (m AnimeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AnimeValidationError

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

AnimeValidationError is the validation error returned by Anime.Validate if the designated constraints aren't met.

func (AnimeValidationError) Cause

func (e AnimeValidationError) Cause() error

Cause function returns cause value.

func (AnimeValidationError) Error

func (e AnimeValidationError) Error() string

Error satisfies the builtin error interface

func (AnimeValidationError) ErrorName

func (e AnimeValidationError) ErrorName() string

ErrorName returns error name.

func (AnimeValidationError) Field

func (e AnimeValidationError) Field() string

Field function returns field value.

func (AnimeValidationError) Key

func (e AnimeValidationError) Key() bool

Key function returns key value.

func (AnimeValidationError) Reason

func (e AnimeValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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