MCPcopy Create free account
hub / github.com/asaskevich/EventBus / Server

Struct Server

server.go:37–43  ·  view source on GitHub ↗

Server - object capable of being subscribed to by remote handlers

Source from the content-addressed store, hash-verified

35
36// Server - object capable of being subscribed to by remote handlers
37type Server struct {
38 eventBus Bus
39 address string
40 path string
41 subscribers map[string][]*SubscribeArg
42 service *ServerService
43}
44
45// NewServer - create a new Server at the address and path
46func NewServer(address, path string, eventBus Bus) *Server {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected