root

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package root implements root service.

Copyright (c) 2016 Pani Networks 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

This section is empty.

Functions

func CreateSchema added in v1.0.0

func CreateSchema(configFileName string, overwrite bool) error

func Run

func Run(configFileName string) (*common.RestServiceInfo, error)

Run configures and starts root service.

Types

type Config

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

Config provides Root-specific configuration. This may seem a bit convoluted, but it is convoluted only for root - for this cost we are buying simplicity/uniformity for other services. See SetConfig() func.

type Root

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

func (*Root) CreateSchema added in v1.0.0

func (root *Root) CreateSchema(o bool) error

func (*Root) Initialize

func (root *Root) Initialize(client *common.RestClient) error

func (*Root) Name

func (root *Root) Name() string

func (*Root) Routes

func (root *Root) Routes() common.Routes

Routes provided by root service.

func (*Root) SetConfig

func (root *Root) SetConfig(config common.ServiceConfig) error

SetConfig implements SetConfig function of the Service interface

Directories

Path Synopsis
Command to launch root service
Command to launch root service

Jump to

Keyboard shortcuts

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