services

package
v0.0.0-...-fc1e718 Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package services provides a simple key value store Not safe for concurreny access TODO: replace map with https://github.com/orcaman/concurrent-map

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInteractiveText

func GetInteractiveText(config string) string

func Parse

func Parse(config string, request string) (bool, bool)

Types

type Service

type Service interface {
	Process(req string) string
	CheckFormat(req string) bool
	CheckRead(req string) bool
	MarshalJSON() ([]byte, error)
	UnmarshalJSON(snap []byte) error
}

func StartService

func StartService(config string) Service

Jump to

Keyboard shortcuts

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