Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements a Proverber server.
func New ¶
func New(l logging.ProverbLogger, c Config) Server
New returns a new instance of the Server.
func (Server) Proverb ¶
func (srv Server) Proverb(ctx context.Context, req *rpc.ProverbRequest) (*rpc.ProverbResponse, error)
Proverb returns a Go proverb.
Click to show internal directories.
Click to hide internal directories.