events

package
v0.0.0-...-a136232 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEventNoWorkspace = errors.New("event workspace is required")
	ErrEventNoApp       = errors.New("event app is required")
	ErrEventNoType      = errors.New("event type is required")
)
View Source
var HEALTHCHECK_FILEPATH = "/tmp/ackstream.services.events.grpc"

Functions

func NewClient

func NewClient(ctx context.Context, conn *grpc.ClientConn) (protos.EventsClient, error)

func NewServer

func NewServer(ctx context.Context) (*grpc.Server, error)

Types

type Server

type Server struct {
	protos.EventsServer
	// contains filtered or unexported fields
}

func (*Server) Health

func (*Server) Pub

func (s *Server) Pub(ctx context.Context, req *protos.PubReq) (*protos.PubRes, error)

func (*Server) Sub

func (s *Server) Sub(req *protos.SubReq, srv protos.Events_SubServer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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