datagram

package
v0.0.0-...-135ad47 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package datagram defines all actions associated with the GRPC service "Datagram".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is an unimplemented push datagram server.

func NewServer

func NewServer(db *sql.DB) *Server

NewServer takes in all the required dependencies and returns a new datagram server.

func (*Server) Push

func (srv *Server) Push(ctx context.Context, req *pb.DatagramPush) (*pb.DatagramAck, error)

Push implements the protocol buffer definition.

func (*Server) Serve

func (srv *Server) Serve(host, port string) error

Jump to

Keyboard shortcuts

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