Documentation ¶
Overview ¶
Package count provides test chain elements for counting Requests/Closes
Index ¶
- type Client
- 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) 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) 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) UniqueCloses ¶
UniqueCloses returns unique closes count
func (*Client) UniqueRequests ¶
UniqueRequests returns unique 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
Click to show internal directories.
Click to hide internal directories.