risclient

package
v0.0.3-pre4.0...-0ec3cfc Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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
}

Request is a RISClient config

Jump to

Keyboard shortcuts

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