pause.go raw

   1  package pause
   2  
   3  var Magic = []byte{'p', 'a', 'u', 1}
   4  
   5  //
   6  // type Container struct {
   7  // 	simplebuffer.Container
   8  // }
   9  //
  10  // func GetPauseContainer(uuid uint64, cfg *pod.Config, node *chainrpc.Node) []byte {
  11  // 	return p2padvt.Get(uuid, cfg)
  12  // 	// mB := p2padvt.Get(cx).CreateContainer(Magic)
  13  // 	// return &Container{*mB}
  14  // }
  15  
  16  // func LoadPauseContainer(b []byte) (out *Container) {
  17  // 	out = &Container{}
  18  // 	out.Data = b
  19  // 	return
  20  // }
  21  //
  22  // func (j *Container) GetIPs() []*net.IP {
  23  // 	return IPs.New().DecodeOne(j.Get(0)).Get()
  24  // }
  25  //
  26  // func (j *Container) GetP2PListenersPort() uint16 {
  27  // 	return Uint16.New().DecodeOne(j.Get(1)).Get()
  28  // }
  29  //
  30  // func (j *Container) GetRPCListenersPort() uint16 {
  31  // 	return Uint16.New().DecodeOne(j.Get(2)).Get()
  32  // }
  33  //
  34  // func (j *Container) GetControllerListenerPort() uint16 {
  35  // 	return Uint16.New().DecodeOne(j.Get(3)).Get()
  36  // }
  37