anvers

package module
v0.0.0-...-0fc291f Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2017 License: MIT Imports: 4 Imported by: 0

README

Anvers

An attempt to write a cms in go.

Done:
  • Wrote this readme
Todo:
  • All the rest...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminMenuEntry

type AdminMenuEntry struct {
	Name        string
	Title       string
	CreateTitle string
	Link        string
	Entries     []*AdminMenuEntry
}

func (*AdminMenuEntry) AddEntry

func (a *AdminMenuEntry) AddEntry(entry *AdminMenuEntry)

func (*AdminMenuEntry) GetByName

func (a *AdminMenuEntry) GetByName(name string) *AdminMenuEntry

func (*AdminMenuEntry) GetEntries

func (a *AdminMenuEntry) GetEntries() []*AdminMenuEntry

type Anvers

type Anvers struct {
	AdminMenu *AdminMenuEntry
	Router    *chi.Mux
	// contains filtered or unexported fields
}

Anvers is our main struct. It wraps the cms.

func NewAnvers

func NewAnvers(config *Config) *Anvers

NewAnvers creates a new cms.

func (*Anvers) Start

func (a *Anvers) Start()

Start starts the cms.

type Config

type Config struct {
	Plugins []Plugin
}

Config contains configuration options for the cms.

type Plugin

type Plugin interface {
	Install(*Anvers)
	Register(*Anvers)
}

Plugin is the generic interface for plugins.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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