Categorygithub.com/kaimao-cheng/gobgptoolbox
modulepackage
0.0.0-20220104030120-c76bcfd782c5
Repository: https://github.com/kaimao-cheng/gobgptoolbox.git
Documentation: pkg.go.dev

# README

gobgptoolbox

Helper functions to convert objects from humanly readable format like string into inhuman formats like any.any

# Functions

MarshalPrefixSID marshals Prefix SID object into a slice of protobuf's anytype.
MarshalRD marshals Route Distinguisher into Proto Any format.
MarshalRDFromString marshals Route Distinguisher into Protobuf Any.any format.
MarshalRT marshals Route Target into Proto Any format.
MarshalRTFromString marshals Route Target into Protobuf Any.any format.
MarshalRTs marshals slice of Route Targets into Proto Any format.
MarshalSRv6SubSubTLVs marshals SRv6 SubSubTLV map into a native protobuf map of TLVs.
MarshalSRv6SubTLVs marshals SRv6 SubTLV map into a native protobuf map of TLVs.
RDValidator validates Route Distinguisher stored in string.
RTValidator validates Route Target stored in string.
UnmarshalPrefixSID unmarshals a slice of protobuf's anytype in Prefix SID object.
UnmarshalRD unmarshals Route Distinguisher from Proto message.
UnmarshalRT unmarshals Route Target extended community from Proto message.
UnmarshalSRv6SubSubTLVs unmarshals a native protobuf map of TLVs into SRv6 SubSubTLV map.
UnmarshalSRv6SubTLVs unmarshals a native protobuf map of TLVs into SRv6 SubTLV map.