nfd

package
v0.0.0-...-6e34d32 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetDB = func(dsn string) (mysql.CceDB, error) {
	return sql.Open("mysql", dsn)
}

GetDB gets DB for passed data source name

View Source
var GetPersistenceService = func(db mysql.CceDB) cce.PersistenceService {
	return &mysql.PersistenceService{DB: db}
}

Functions

This section is empty.

Types

type NodeFeatureNFD

type NodeFeatureNFD struct {
	ID       string `json:"id"`
	NodeID   string `json:"node_id"`
	NfdID    string `json:"nfd_id"`
	NfdValue string `json:"nfd_value"`
}

NodeFeatureNFD is a representation of NFD feature on the node

func (*NodeFeatureNFD) FilterFields

func (nf *NodeFeatureNFD) FilterFields() []string

FilterFields returns the filterable fields of NodeFeatureNFD

func (*NodeFeatureNFD) GetID

func (nf *NodeFeatureNFD) GetID() string

GetID returns ID of NodeFeatureNFD entity

func (*NodeFeatureNFD) GetTableName

func (*NodeFeatureNFD) GetTableName() string

GetTableName returns persistence table name for NodeFeatureNFD entities

func (*NodeFeatureNFD) SetID

func (nf *NodeFeatureNFD) SetID(id string)

SetID sets ID for NodeFeatureNFD entity

func (*NodeFeatureNFD) String

func (nf *NodeFeatureNFD) String() string

String reutrns string representation of NodeFeatureNFD entity

type ServerNFD

type ServerNFD struct {
	Endpoint   int
	CaCertPath string
	CaKeyPath  string
	Sni        string
	Dsn        string
}

ServerNFD describes NFD Master server object

func (ServerNFD) ServeGRPC

func (s ServerNFD) ServeGRPC(ctx context.Context) error

ServeGRPC creates and starts NFD Master server

Jump to

Keyboard shortcuts

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