server

package
v0.0.0-...-165bc0d Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, app *events.App) (*grpc.Server, error)

Types

type HealthServer

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

func (HealthServer) Check

func (HealthServer) Watch

type Server

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

func (*Server) Get

func (s *Server) Get(ctx context.Context, request *protos.GetReq) (*protos.Event, error)

func (*Server) Pub

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

func (*Server) Scan

func (s *Server) Scan(ctx context.Context, request *protos.ScanReq) (*protos.ScanRes, error)

func (*Server) Sub

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

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(ctx context.Context, cfg *configs.Configs) (*Service, error)

func (*Service) Run

func (service *Service) Run() error

func (*Service) Start

func (service *Service) Start() error

func (*Service) Stop

func (service *Service) Stop() error

Jump to

Keyboard shortcuts

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