server

package
v0.0.0-...-395cfcb Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Name string
	Info ServiceInfo
	// contains filtered or unexported fields
}

func NewService

func NewService(name string, info ServiceInfo, endpoints []string) (*Service, error)

NewService new service init conf

func (*Service) Start

func (s *Service) Start() error

Start start the service

func (*Service) Stop

func (s *Service) Stop()

Stop stop the service

type ServiceInfo

type ServiceInfo struct {
	IP string
}

ServiceInfo service info struct

Jump to

Keyboard shortcuts

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