url

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: AGPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Completer

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

Completer is a struct that is initialisied in main and it posses the publicURL for our storage

func NewCompleter

func NewCompleter(baseURL string) Completer

NewCompleter is called from main to inject baseURL for our public storage. This function is called in main before any graphql related stuff

func (*Completer) GetOptionalPublicURL

func (c *Completer) GetOptionalPublicURL(in *string) *string

GetOptionalPublicURL ..

func (*Completer) GetPublicURL

func (c *Completer) GetPublicURL(fileName string) string

GetPublicURL takes the filename that is recorded on entity and returns the URL of the file Exaple input and output ; profile/avatar.jpg ---> https://media.picnic.com/profile/avatar.jpg

func (*Completer) GetPublicURLForThumb

func (c *Completer) GetPublicURLForThumb(fileName string) string

GetPublicURLForThumb returns Thumbnail version version of the given image/video filename. Exaple input and output ; profile/avatar.jpg ---> https://media.picnic.com/profile/avatar_thumb.jpg

Jump to

Keyboard shortcuts

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