display

package
v0.0.0-...-501444c Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageHost       string = "localhost:50054/files"
	SmallImageWidth uint   = 20
	LargeImageWidth uint   = 32
)

Variables

This section is empty.

Functions

func Assets

func Assets(assets ...*commandservice.Asset) string

Types

type Options

type Options struct {
	ImageHost    string
	DisplayImage bool
	PageSize     int
}

type Service

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

func NewService

func NewService(opts *Options) *Service

func (*Service) Assets

func (s *Service) Assets(assets ...*commandservice.Asset) string

func (*Service) Files

func (s *Service) Files(files ...*fileservice.File) string

func (*Service) RenderFiles

func (s *Service) RenderFiles(files ...*displayFile) string

func (*Service) RenderSearchResults

func (s *Service) RenderSearchResults(results ...*displayResult) string

func (*Service) SearchResults

func (s *Service) SearchResults(results ...*queryservice.SearchResult) string

Jump to

Keyboard shortcuts

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