apphosting

package
v0.0.0-...-1fca3aa Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Key      string
	Expiry   time.Duration
	Provider func(context.Context) interface{}
	// contains filtered or unexported fields
}

Cache caches a value into memcache/local storage.

func (*Cache) Get

func (c *Cache) Get(ctx context.Context, raw interface{}) error

Get retrieves the cached value. The passed interface{} must be a pointer.

func (*Cache) Seed

func (c *Cache) Seed(ctx context.Context) error

Seed seeds the cached value into memcache/local storage.

type EmojiLib

type EmojiLib struct {
	Data   *emoji.Data
	Test   *emoji.Test
	Loader *loader.Loader
	// contains filtered or unexported fields
}

func (*EmojiLib) Lookup

func (el *EmojiLib) Lookup(name string) (*EmojiLookup, error)

type EmojiLookup

type EmojiLookup struct {
	Notes template.HTML `json:"notes"`
}

Jump to

Keyboard shortcuts

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