package
0.0.0-20200712133309-237f4c2a41fe
Repository: https://github.com/hellgate75/go-tcp-common.git
Documentation: pkg.go.dev

# Functions

AddressCount returns the number of distinct host addresses within the given CIDR range.
AddressRange returns the first and last addresses in the given CIDR range.
Dec decreases the IP by one this returns a new []byte for the IP.
Generate a Security Token of a given length.
Host takes a parent CIDR range and turns it into a host IP address with the given host number.
Inc increases the IP by one this returns a new []byte for the IP.
ListAddresses returns the list of all addresses in the given CIDR range.
NextSubnet returns the next available subnet of the desired mask size starting for the maximum IP of the offset subnet If the IP exceeds the maxium IP then the second return value is true.
PreviousSubnet returns the subnet of the desired mask in the IP space just lower than the start of IPNet provided.
Submit Failure Data To the client.
Submit Success Data To the client.
Subnet takes a parent CIDR range and creates a subnet within it with the given number of additional prefix bits and the given network number.
VerifyNoOverlap takes a list subnets and supernet (CIDRBlock) and verifiesnone of the subnets overlap and all subnets are in the supernetit returns an error if any of those conditions are not satisfied.

# Constants

Binary Data format Mime Type.
Json format Mime Type.
Plain Text format Mime Type.
Rest Web Method: CONNECT.
Rest Web Method: DELETE.
Rest Web Method: GET.
Rest Web Method: HEAD.
Rest Web Method: OPTIONS.
Rest Web Method: PATCH.
REST_METHOD_POST
Rest Web Method: POST.
REST_METHOD_POST_FORM
Rest Web Method: POST (FORM).
Rest Web Method: PUT.
Rest Web Method: TRACE.
Rest Web Protocol: HTTP.
Rest Web Protocol: HTTPS.
Rest Web Protocol: WS.
Xml format Mime Type.
Yaml format Mime Type.
Zip Archive format Mime Type.

# Variables

Session Context Auth Token.
Session Context Remote Address.
Session Context Key.

# Interfaces

Interface that describes the callback action of an API call.

# Type aliases

Context Key Type.
Mime Type.
Rest Web Method Type.
Rest Protocol Type.