service

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 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) 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)
}

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.
test
Utility functions to help writing tests for a Go-Json-Rest app Go comes with net/http/httptest to help writing test for an http server.
Utility functions to help writing tests for a Go-Json-Rest app Go comes with net/http/httptest to help writing test for an http server.
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
netpoll
Package netpoll provides a portable interface for network I/O event notification facility.
Package netpoll provides a portable interface for network I/O event notification facility.

Jump to

Keyboard shortcuts

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