boomerserver

package
v0.0.0-...-0c3af6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package boomerserver implements the boomer server. It makes things go boom.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new boomer server. The server is registered with the provided grpc.ServiceRegistrar.

Types

type Connection

type Connection interface {
	Publish(subject string, msg []byte) error
	Request(subject string, req []byte, timeout time.Duration) (resp *nats.Msg, err error)
	RequestMsg(msg *nats.Msg, timeout time.Duration) (resp *nats.Msg, err error)
}

Connection is an interface for publishing and requesting messages. It is satisfied by nats.Conn, among others.

type Server

type Server struct {
	pb.UnimplementedBoomerServer
	// contains filtered or unexported fields
}

Server implements the boomer server

func (*Server) Boom

func (s *Server) Boom(ctx context.Context, req *pb.BoomRequest) (*pb.BoomResponse, error)

Boom implements the pb.BoomerServer GRPC interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL