count

package
v1.14.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package count provides test chain elements for counting Requests/Closes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a client type for counting Requests/Closes

func (*Client) BackwardCloses added in v1.13.0

func (c *Client) BackwardCloses() int

BackwardCloses returns backward closes count

func (*Client) BackwardRequests added in v1.13.0

func (c *Client) BackwardRequests() int

BackwardRequests returns backward requests count

func (*Client) Close

func (c *Client) Close(ctx context.Context, connection *networkservice.Connection, opts ...grpc.CallOption) (*empty.Empty, error)

Close performs close and increments closes count

func (*Client) Closes

func (c *Client) Closes() int

Closes returns forward closes count

func (*Client) Request

Request performs request and increments requests count

func (*Client) Requests

func (c *Client) Requests() int

Requests returns forward requests count

func (*Client) UniqueBackwardCloses added in v1.13.0

func (c *Client) UniqueBackwardCloses() int

UniqueBackwardCloses returns unique backward closes count

func (*Client) UniqueBackwardRequests added in v1.13.0

func (c *Client) UniqueBackwardRequests() int

UniqueBackwardRequests returns unique backward requests count

func (*Client) UniqueCloses

func (c *Client) UniqueCloses() int

UniqueCloses returns unique forward closes count

func (*Client) UniqueRequests

func (c *Client) UniqueRequests() int

UniqueRequests returns unique forward requests count

type Server

type Server struct {
	TotalCloses int32
	// contains filtered or unexported fields
}

Server is a server type for counting Requests/Closes

func (*Server) Close

func (s *Server) Close(ctx context.Context, connection *networkservice.Connection) (*empty.Empty, error)

Close performs close and increments closes count

func (*Server) Closes

func (s *Server) Closes() int

Closes returns closes count

func (*Server) Request

Request performs request and increments requests count

func (*Server) Requests

func (s *Server) Requests() int

Requests returns requests count

func (*Server) UniqueCloses

func (s *Server) UniqueCloses() int

UniqueCloses returns unique closes count

func (*Server) UniqueRequests

func (s *Server) UniqueRequests() int

UniqueRequests returns unique requests count

Jump to

Keyboard shortcuts

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