server

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCServer

type GRPCServer struct {
	pbv1.UnimplementedCloudEventServiceServer
	// contains filtered or unexported fields
}

func NewGRPCServer

func NewGRPCServer() *GRPCServer

func NewGRPCServer(eventBroadcaster *store.EventBroadcaster) *GRPCServer {

func (*GRPCServer) GetStore

func (svr *GRPCServer) GetStore() *store.MemoryStore

func (*GRPCServer) Publish

func (svr *GRPCServer) Publish(ctx context.Context, pubReq *pbv1.PublishRequest) (*emptypb.Empty, error)

func (*GRPCServer) ResourceChan

func (svr *GRPCServer) ResourceChan() <-chan *store.Resource

func (*GRPCServer) Start

func (svr *GRPCServer) Start(addr string, serverOpts []grpc.ServerOption) error

func (*GRPCServer) Subscribe

func (*GRPCServer) UpdateResourceStatus

func (svr *GRPCServer) UpdateResourceStatus(resource *store.Resource) error

Jump to

Keyboard shortcuts

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