service

package
v0.0.0-...-fe81f67 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScriptRequest

type ScriptRequest struct {
	ID   string `json:"id"`
	Data []byte `json:"data"`
}

ScriptRequest is the container for add/update script

func (*ScriptRequest) Validate

func (s *ScriptRequest) Validate() error

Validate validates the scriptrequst

type Service

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

Service encapsulates the http server and the raft store

func New

func New(cfg *config.Config) (*Service, error)

New returns the http service wrapper for the store.

func (*Service) Shutdown

func (s *Service) Shutdown(ctx context.Context) error

Shutdown the service

func (*Service) Start

func (s *Service) Start() error

Start the service

Jump to

Keyboard shortcuts

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