package
Version:
v1.6.0-rc.7
Opens a new window with list of versions in this module.
Published: Sep 16, 2021
License: BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 7
Opens a new window with list of known importers.
Documentation
¶
Client is an implementation of a messenger channel that talks over RPC.
func NewClient(client messengerproto.MessengerClient) *Client
NewClient returns a client that is connected to a remote channel
func (c *Client) Notify(msg common.Message) error
type Server struct {
messengerproto.UnimplementedMessengerServer
}
Server is a messenger that is managed over RPC.
func NewServer(messenger chan<- common.Message) *Server
NewServer returns a messenger connected to a remote channel
func (s *Server) Notify(_ context.Context, req *messengerproto.NotifyRequest) (*messengerproto.NotifyResponse, error)
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.