streams

package
v0.0.0-...-0172641 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGRPC

func RunGRPC(port int)

RunGRPC starts the GRPC server

Types

type Server

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

Server core struct

func NewServer

func NewServer() *Server

NewServer creates a new struct to interface the streams server

func (*Server) Create

func (s *Server) Create(ctx context.Context, request *pb.Stream) (*pb.Stream, error)

Create stores a new stream in the DB

func (*Server) Delete

func (s *Server) Delete(ctx context.Context, request *pb.Stream) (*pb.Empty, error)

Delete deletes the stream

func (*Server) Get

func (s *Server) Get(ctx context.Context, request *pb.GetRequest) (*pb.Stream, error)

Get fetches the stream from DB

func (*Server) List

func (s *Server) List(ctx context.Context, request *pb.Empty) (*pb.StreamList, error)

List provides a list of streams the user is an owner of

func (*Server) ListIds

func (s *Server) ListIds(ctx context.Context, searchRequest *pb.SearchRequest) (*pb.IdList, error)

ListIds provides a list of ids

func (*Server) Update

func (s *Server) Update(ctx context.Context, request *pb.Stream) (*pb.Stream, error)

Update updates the record in the DB with the matching owner and id then returns the same stream

Directories

Path Synopsis
Package evntsrc_streams is a generated protocol buffer package.
Package evntsrc_streams is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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