Documentation ¶
Overview ¶
Package count provides test chain elements for counting Requests/Closes
Index ¶
- type Client
- func (c *Client) BackwardCloses() int
- func (c *Client) BackwardRequests() int
- func (c *Client) Close(ctx context.Context, connection *networkservice.Connection, ...) (*empty.Empty, error)
- func (c *Client) Closes() int
- func (c *Client) Request(ctx context.Context, request *networkservice.NetworkServiceRequest, ...) (*networkservice.Connection, error)
- func (c *Client) Requests() int
- func (c *Client) UniqueBackwardCloses() int
- func (c *Client) UniqueBackwardRequests() int
- func (c *Client) UniqueCloses() int
- func (c *Client) UniqueRequests() int
- type Server
- func (s *Server) Close(ctx context.Context, connection *networkservice.Connection) (*empty.Empty, error)
- func (s *Server) Closes() int
- func (s *Server) Request(ctx context.Context, request *networkservice.NetworkServiceRequest) (*networkservice.Connection, error)
- func (s *Server) Requests() int
- func (s *Server) UniqueCloses() int
- func (s *Server) UniqueRequests() int
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
BackwardCloses returns backward closes count
func (*Client) BackwardRequests ¶ added in v1.13.0
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) Request ¶
func (c *Client) Request(ctx context.Context, request *networkservice.NetworkServiceRequest, opts ...grpc.CallOption) (*networkservice.Connection, error)
Request performs request and increments requests count
func (*Client) UniqueBackwardCloses ¶ added in v1.13.0
UniqueBackwardCloses returns unique backward closes count
func (*Client) UniqueBackwardRequests ¶ added in v1.13.0
UniqueBackwardRequests returns unique backward requests count
func (*Client) UniqueCloses ¶
UniqueCloses returns unique forward closes count
func (*Client) UniqueRequests ¶
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) Request ¶
func (s *Server) Request(ctx context.Context, request *networkservice.NetworkServiceRequest) (*networkservice.Connection, error)
Request performs request and increments requests count
func (*Server) UniqueCloses ¶
UniqueCloses returns unique closes count
func (*Server) UniqueRequests ¶
UniqueRequests returns unique requests count