func NewStructOverTCP() *blend.Transport { f := trace.NewFrame("tele") // Carrier x2 := tcp.CodecTransport // Codec x3 := codec.NewTransport(x2, codec.GobCodec{}) // Blend return blend.NewTransport(f.Refine("blend"), x3) }
func NewStructOverTCPWithHMAC(key []byte) *blend.Transport { f := trace.NewFrame("tele") // Carrier x2 := hmac.NewTransport(key) // Codec x3 := codec.NewTransport(x2, codec.GobCodec{}) // Blend return blend.NewTransport(f.Refine("blend"), x3) }
func NewStructOverTCP() *blend.Transport { f := trace.NewFrame("tele") // Carrier x0 := tcp.Transport // Chain x1 := chain.NewTransport(f.Refine("chain"), x0) // Faithful x2 := faithful.NewTransport(f.Refine("faithful"), x1) // Codec x3 := codec.NewTransport(x2, codec.GobCodec{}) // Blend return blend.NewTransport(f.Refine("blend"), x3) }