algolia_wrapper

package
v0.0.0-...-0b4f943 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Algolia_File_Service

type Algolia_File_Service interface {
	ToConnectAlgolia(credentials *protos.Credentials) *algolia_Client.Client
	Index(client *algolia_Client.Client, name ...string) *algolia_Client.Index
	Put(index *algolia_Client.Index) (*algolia_Client.SaveObjectRes, error)
	Get(index *algolia_Client.Index, object *algolia_Client.SaveObjectRes) (interface{}, image.Image, error)
	Decode() (image.Image, error)
	Close() error
	Query(index *algolia_Client.Index, result *algolia_Client.SaveObjectRes, doc ...string) (algolia_Client.QueryRes, error)
}

func NewAlgolia_Object

func NewAlgolia_Object(file *os.File) Algolia_File_Service

type MediaFormat

type MediaFormat struct {
	File       *os.File               `json:"File"`
	Class      protos.ImageType       `json:"Class"`
	Avatar     *image.Image           `json:"Avatar"`
	FormatType protos.ImageFormatType `json:"FormatType"`
}

func (*MediaFormat) Close

func (format *MediaFormat) Close() error

func (*MediaFormat) Decode

func (format *MediaFormat) Decode() (image.Image, error)

func (*MediaFormat) Get

func (format *MediaFormat) Get(index *algolia_Client.Index, object *algolia_Client.SaveObjectRes) (interface{}, image.Image, error)

func (*MediaFormat) Index

func (format *MediaFormat) Index(client *algolia_Client.Client, name ...string) *algolia_Client.Index

func (*MediaFormat) Put

func (*MediaFormat) Query

func (*MediaFormat) ToConnectAlgolia

func (format *MediaFormat) ToConnectAlgolia(credentials *protos.Credentials) *algolia_Client.Client

Directories

Path Synopsis
Package protos is a generated protocol buffer package.
Package protos is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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