sff

package module
v0.0.0-...-eb8a76a Latest Latest
Warning

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

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

README

A more recent version of this can be found in: ifwatch

Documentation

Index

Constants

View Source
const (
	TypeUnknown = Type("Unknown")
	TypeSff8079 = Type("SFF-8079")
	TypeSff8636 = Type("SFF-8636")
)

Variables

View Source
var ErrUnknownType = errors.New("unknown type")

Functions

This section is empty.

Types

type Module

type Module struct {
	Type             Type `json:"type"`
	*sff8079.Sff8079 `json:"-"`
	*sff8636.Sff8636 `json:"-"`
}

func Decode

func Decode(eeprom []byte) (*Module, error)

func (*Module) MarshalJSON

func (m *Module) MarshalJSON() ([]byte, error)

func (*Module) String

func (m *Module) String() string

func (*Module) StringCol

func (m *Module) StringCol() string

func (*Module) UnmarshalJSON

func (m *Module) UnmarshalJSON(in []byte) error

type Type

type Type string

Type of eeprom module.

func GetType

func GetType(eeprom []byte) (Type, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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