risclient

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	AddRoute(src interface{}, r *routeapi.Route) error
	RemoveRoute(src interface{}, r *routeapi.Route) error
	DropAllBySrc(src interface{})
}

Client is a client interface

type RISClient

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

RISClient represents a RIS client

func New

func New(req *Request, cc *grpc.ClientConn, c Client) *RISClient

New creates a new RISClient

func (*RISClient) Start

func (r *RISClient) Start()

Start starts the client

func (*RISClient) Stop

func (r *RISClient) Stop()

Stop stops the client

func (*RISClient) Wait

func (r *RISClient) Wait()

Wait blocks until the client is fully stopped

type Request

type Request struct {
	Router          string
	VRFRD           uint64
	AFI             risapi.ObserveRIBRequest_AFISAFI
	AllowUnreadyRib bool
}

Request is a RISClient config

Jump to

Keyboard shortcuts

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