typer.go raw

   1  // Package typer is an interface for server to use to identify their type simply for
   2  // aggregating multiple self-registered server such that the top level can recognise the
   3  // type of a message and match it to the type of handler.
   4  package typer
   5  
   6  type T interface {
   7  	// Type returns a type identifier string to allow multiple self-registering publisher.I to
   8  	// be used with an abstraction to allow multiple APIs to publish.
   9  	Type() string
  10  }
  11