Versions in this module Expand all Collapse all v2 v2.0.0 Aug 8, 2022 Changes in this version + type Endpoint interface + Network func() string + Port func() int + type Key string + const FPCKey + const GossipKey + const PeeringKey + type Record struct + func FromProto(in *pb.ServiceMap) (*Record, error) + func New() *Record + func Unmarshal(data []byte) (*Record, error) + func (s *Record) CreateRecord() *Record + func (s *Record) Get(key Key) Endpoint + func (s *Record) Marshal() ([]byte, error) + func (s *Record) MarshalJSON() ([]byte, error) + func (s *Record) String() string + func (s *Record) ToProto() *pb.ServiceMap + func (s *Record) UnmarshalJSON(b []byte) error + func (s *Record) Update(key Key, network string, port int) + type Service interface + CreateRecord func() *Record + Get func(Key) Endpoint Other modules containing this package github.com/finderAUT/hive.go/v3