sonarservice

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SonarService

type SonarService struct {
	Name      string
	Port      int
	Transport TransportProtocol
}

func NewSonarService

func NewSonarService(serviceStr string) (SonarService, error)

func (SonarService) ToString

func (s SonarService) ToString() string

ToString produces a Sonar file compliant string representation of the service

type TransportProtocol

type TransportProtocol string
const (
	TCP    TransportProtocol = "tcp"
	UDP    TransportProtocol = "udp"
	NotDef TransportProtocol = ""
)

func NewTransportProtocol

func NewTransportProtocol(s string) (TransportProtocol, error)

Jump to

Keyboard shortcuts

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