static

package
v0.0.0-...-a894b33 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRoutes

func GetRoutes(staticRepo Repo) []routing.Route

* Return the routes for this

Types

type Repo

type Repo interface {
	/**
	Get the public static
	*/
	GetStaticPublicDocument(path string) (string, error)

	/**
	Get the public static
	*/
	GetStaticPrivateDocument(path string) (string, error)
}

* Define an interface that all Calc Repos must follow

type RepoCache

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

* Define a struct for RepoMem for news

func NewRepoCache

func NewRepoCache(drive *google.Drive, cas cache.ObjectCache, privateConfigFile string, publicConfigFile string) *RepoCache

Provide a method to make a new AnimalRepoSql

func (*RepoCache) CleanUp

func (repo *RepoCache) CleanUp()

* Nothing much to do for the clean up

func (*RepoCache) GetStaticPrivateDocument

func (repo *RepoCache) GetStaticPrivateDocument(path string) (string, error)

* Get the public static

func (*RepoCache) GetStaticPublicDocument

func (repo *RepoCache) GetStaticPublicDocument(path string) (string, error)

* Get the public static

Jump to

Keyboard shortcuts

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