fracserv

package
v0.0.0-...-eef2c56 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Copyright 2012 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2012 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	DisableCache = flag.Bool("disableCache", false,
		"disables all caching, ever requested rendered on demand")
)
View Source
var ImageCache cache.Cache

Functions

func FracHandlerNew

func FracHandlerNew(name string, newFunc fractal.FractalNew) func(http.ResponseWriter, *http.Request)

func IndexHander

func IndexHander(w http.ResponseWriter, req *http.Request)

Types

type Bookmark

type Bookmark struct {
	Name  string    `json:"name"`
	Url   string    `json:"url"`
	Added time.Time `json:"added"`
}

type Bookmarks

type Bookmarks struct {
	Bookmarks []Bookmark
	// contains filtered or unexported fields
}

func NewBookmarks

func NewBookmarks() *Bookmarks

func (*Bookmarks) Add

func (b *Bookmarks) Add(bookmark Bookmark)

func (*Bookmarks) AddHandler

func (b *Bookmarks) AddHandler(w http.ResponseWriter, req *http.Request)

func (*Bookmarks) ListHandler

func (b *Bookmarks) ListHandler(w http.ResponseWriter, req *http.Request)

func (*Bookmarks) Load

func (b *Bookmarks) Load(fn string) error

func (*Bookmarks) Save

func (b *Bookmarks) Save(fn string) error

type CachedImage

type CachedImage struct {
	Timestamp time.Time
	Bytes     []byte
}

func (CachedImage) Size

func (c CachedImage) Size() int

Jump to

Keyboard shortcuts

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