notify

package
v0.0.0-...-c09d378 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: AGPL-3.0 Imports: 10 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 {
	C *sync.Cond
}

func (*GRPCServer) Listen

func (s *GRPCServer) Listen(ctx context.Context, in *pb.Request) (*pb.Response, error)

func (*GRPCServer) Notify

func (s *GRPCServer) Notify(ctx context.Context, in *pb.Request) (*pb.Response, error)

type Server

type Server struct {
	BearerToken string

	C *sync.Cond
	// contains filtered or unexported fields
}

Server handles http requests.

func NewServer

func NewServer() *Server

NewServer creates a new http server.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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