service

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

*

  • ______ __
  • /\__ _\ /\ \
  • \/_/\ \/ ___ __\ \ \ __ ___ ___ __
  • \ \ \ / ___\ / __ \ \ \ __ / __ \ / _ \ / ___\ / __ \
  • \_\ \__/\ \__//\ __/\ \ \_\ \/\ \_\ \_/\ \/\ \/\ \__//\ __/
  • /\_____\ \____\ \____\\ \____/\ \__/ \_\ \_\ \_\ \____\ \____\
  • \/_____/\/____/\/____/ \/___/ \/__/\/_/\/_/\/_/\/____/\/____/ * *
  • @寒冰
  • www.icezzz.cn
  • hanbin020706@163.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	Name string `toml:"name"`
	Ip   string `toml:"ip"`
	Port int    `toml:"port"`
	// contains filtered or unexported fields
}

func (*Entity) GetPort added in v0.1.9

func (s *Entity) GetPort() int

func (*Entity) GetServiceName

func (s *Entity) GetServiceName() string

func (*Entity) IsRunning

func (s *Entity) IsRunning() bool

func (*Entity) SetRunningStatus

func (s *Entity) SetRunningStatus(status bool)

func (*Entity) Start

func (s *Entity) Start()

func (*Entity) Stop

func (s *Entity) Stop()

type Service

type Service interface {
	Start()
	Stop()
	GetServiceName() string
	IsRunning() bool
	SetRunningStatus(bool)
	GetPort() int
}

Directories

Path Synopsis
A quick and easy way to setup a RESTful JSON API http://ant0ine.github.io/go-json-rest/ Go-Json-Rest is a thin layer on top of net/http that helps building RESTful JSON APIs easily.
A quick and easy way to setup a RESTful JSON API http://ant0ine.github.io/go-json-rest/ Go-Json-Rest is a thin layer on top of net/http that helps building RESTful JSON APIs easily.
trie
Special Trie implementation for HTTP routing.
Special Trie implementation for HTTP routing.
* * ______ __ * /\__ _\ /\ \ * \/_/\ \/ ___ __\ \ \ __ ___ ___ __ * \ \ \ / ___\ / __ \ \ \ __ / __ \ / _ \ / ___\ / __ \ * \_\ \__/\ \__//\ __/\ \ \_\ \/\ \_\ \_/\ \/\ \/\ \__//\ __/ * /\_____\ \____\ \____\\ \____/\ \__/ \_\ \_\ \_\ \____\ \____\ * \/_____/\/____/\/____/ \/___/ \/__/\/_/\/_/\/_/\/____/\/____/ * * * @寒冰 * www.icezzz.cn * hanbin020706@163.com
* * ______ __ * /\__ _\ /\ \ * \/_/\ \/ ___ __\ \ \ __ ___ ___ __ * \ \ \ / ___\ / __ \ \ \ __ / __ \ / _ \ / ___\ / __ \ * \_\ \__/\ \__//\ __/\ \ \_\ \/\ \_\ \_/\ \/\ \/\ \__//\ __/ * /\_____\ \____\ \____\\ \____/\ \__/ \_\ \_\ \_\ \____\ \____\ * \/_____/\/____/\/____/ \/___/ \/__/\/_/\/_/\/_/\/____/\/____/ * * * @寒冰 * www.icezzz.cn * hanbin020706@163.com
* * ______ __ * /\__ _\ /\ \ * \/_/\ \/ ___ __\ \ \ __ ___ ___ __ * \ \ \ / ___\ / __ \ \ \ __ / __ \ / _ \ / ___\ / __ \ * \_\ \__/\ \__//\ __/\ \ \_\ \/\ \_\ \_/\ \/\ \/\ \__//\ __/ * /\_____\ \____\ \____\\ \____/\ \__/ \_\ \_\ \_\ \____\ \____\ * \/_____/\/____/\/____/ \/___/ \/__/\/_/\/_/\/_/\/____/\/____/ * * * @寒冰 * www.icezzz.cn * hanbin020706@163.com
* * ______ __ * /\__ _\ /\ \ * \/_/\ \/ ___ __\ \ \ __ ___ ___ __ * \ \ \ / ___\ / __ \ \ \ __ / __ \ / _ \ / ___\ / __ \ * \_\ \__/\ \__//\ __/\ \ \_\ \/\ \_\ \_/\ \/\ \/\ \__//\ __/ * /\_____\ \____\ \____\\ \____/\ \__/ \_\ \_\ \_\ \____\ \____\ * \/_____/\/____/\/____/ \/___/ \/__/\/_/\/_/\/_/\/____/\/____/ * * * @寒冰 * www.icezzz.cn * hanbin020706@163.com
* * ______ __ * /\__ _\ /\ \ * \/_/\ \/ ___ __\ \ \ __ ___ ___ __ * \ \ \ / ___\ / __ \ \ \ __ / __ \ / _ \ / ___\ / __ \ * \_\ \__/\ \__//\ __/\ \ \_\ \/\ \_\ \_/\ \/\ \/\ \__//\ __/ * /\_____\ \____\ \____\\ \____/\ \__/ \_\ \_\ \_\ \____\ \____\ * \/_____/\/____/\/____/ \/___/ \/__/\/_/\/_/\/_/\/____/\/____/ * * * @寒冰 * www.icezzz.cn * hanbin020706@163.com
* * ______ __ * /\__ _\ /\ \ * \/_/\ \/ ___ __\ \ \ __ ___ ___ __ * \ \ \ / ___\ / __ \ \ \ __ / __ \ / _ \ / ___\ / __ \ * \_\ \__/\ \__//\ __/\ \ \_\ \/\ \_\ \_/\ \/\ \/\ \__//\ __/ * /\_____\ \____\ \____\\ \____/\ \__/ \_\ \_\ \_\ \____\ \____\ * \/_____/\/____/\/____/ \/___/ \/__/\/_/\/_/\/_/\/____/\/____/ * * * @寒冰 * www.icezzz.cn * hanbin020706@163.com

Jump to

Keyboard shortcuts

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