meelel

package module
v0.0.0-...-d91bd14 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

README

Meelel

The aim here is to build a simple blog library in Golang that I can integrate to my App Engine sites.

About

© Copyright 2017 OÜ Nevermore

Licensed under the Apache 2.0 license

Documentation

Overview

Copyright 2017 OÜ Nevermore

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.

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

This section is empty.

Functions

This section is empty.

Types

type Meelel

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

func New

func New(c context.Context) *Meelel

func NewWithGoon

func NewWithGoon(g *goon.Goon) *Meelel

func (Meelel) DeletePost

func (m Meelel) DeletePost(id string) error

func (Meelel) GetAllPostIds

func (m Meelel) GetAllPostIds() ([]string, error)

func (Meelel) GetPost

func (m Meelel) GetPost(id string) (*Post, error)

func (Meelel) GetRecentPosts

func (m Meelel) GetRecentPosts(limit int) ([]*Post, error)

func (Meelel) SavePost

func (m Meelel) SavePost(postData *Post) (*Post, error)

type Post

type Post struct {
	Id              string    `datastore:"-" goon:"id"`
	Active          bool      `datastore:"a"`
	Created         time.Time `datastore:"c"`
	Modified        time.Time `datastore:"m"`
	Title           string    `datastore:"t,noindex"`
	PageTitle       string    `datastore:"mt,noindex"`
	MetaDescription string    `datastore:"md,noindex"`
	Content         string    `datastore:"co,noindex`
	// contains filtered or unexported fields
}

func (*Post) HTML

func (p *Post) HTML() string

Jump to

Keyboard shortcuts

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