jtisim

package module
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

README

Build Status

jtisim

JTI simulator (server)

A stand alone program to stream JTI telemetry data. Useful in scale testing to produce high volume telemetry data.

$ git clone https://github.com/nileshsimaria/jtisim.git
$ cd $GOPATH/src/github.com/nileshsimaria/jtisim/cmd
$ go build

$ ./cmd --help
Usage of ./cmd:
      --description-dir string   description directory (default "../desc")
      --host string              host name or ip (default "127.0.0.1")
      --port int32               grpc server port (default 50051)
      --random                   Use random number to generate counter values

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeMSTimestamp

func MakeMSTimestamp() int64

MakeMSTimestamp timestamp in ms for JTI

Types

type Description

type Description struct {
	Media   string `json:"media"`
	FPC     int    `json:"fpc"`
	PIC     int    `json:"pic"`
	PORT    int    `json:"port"`
	Logical int    `json:"logical"`
}

Description of interfaces

type IDesc

type IDesc struct {
	Desc Description `json:"desc"`
	IFD  IFDCounters `json:"ifd-counters"`
	IFL  IFLCounters `json:"ifl-counters"`
}

IDesc Interface description structrue

type IFDCounters

type IFDCounters struct {
	INPkts      int32 `json:"in-pkts"`
	INOctets    int32 `json:"in-octets"`
	AdminStatus bool  `json:"admin-status"`
	OperStatus  bool  `json:"oper-status"`
}

IFDCounters of interfaces

type IFLCounters

type IFLCounters struct {
	INUnicastPkts   int32 `json:"in-unicast-pkts"`
	INMulticastPkts int32 `json:"in-multicast-pkts"`
}

IFLCounters of interfaces

type JTISim

type JTISim struct {
	// contains filtered or unexported fields
}

JTISim is JTI Simulator

func NewJTISim

func NewJTISim(host string, port int32, random bool, descDir string) *JTISim

NewJTISim to create new jti simulator

func (*JTISim) Start

func (s *JTISim) Start() error

Start the simulator

Directories

Path Synopsis
Package authentication is a generated protocol buffer package.
Package authentication is a generated protocol buffer package.
Package telemetry is a generated protocol buffer package.
Package telemetry is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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