api

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api interface {
	Name() string
	Version() *Version
	HostIP() net.IP
	HostPort() int
	Equal(Api) bool
	Environment() environment.Environment
}

func NewApi

func NewApi(name string, ver *Version, env environment.Environment, hostIP net.IP, port int) (Api, error)

type Version

type Version struct {
	Major  uint
	Minor  uint
	BugFix uint
}

func (*Version) Equal

func (this *Version) Equal(other *Version) bool

func (*Version) GreaterThan

func (this *Version) GreaterThan(other *Version) bool

func (*Version) LessThan

func (this *Version) LessThan(other *Version) bool

func (*Version) String

func (this *Version) String() string

Jump to

Keyboard shortcuts

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