MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / New

Function New

server/server.go:51–61  ·  view source on GitHub ↗

New returns a new Server

()

Source from the content-addressed store, hash-verified

49
50// New returns a new Server
51func New() *Server {
52 log := log15.New()
53 log.SetHandler(log15.DiscardHandler())
54
55 return &Server{
56 MBPrefix: "ari.",
57 readyCh: make(chan struct{}),
58 Dialog: dialog.NewMemManager(),
59 Log: log,
60 }
61}
62
63// Listen runs the given server, listening to ARI and MessageBus, as specified
64func (s *Server) Listen(ctx context.Context, ariOpts *native.Options, messagebusURL string) (err error) {

Callers 3

runServerFunction · 0.92
StartMethod · 0.92
StartMethod · 0.70

Calls 2

NewMemManagerFunction · 0.92
NewMethod · 0.80

Tested by 2

StartMethod · 0.74
StartMethod · 0.56