grpc

package
v0.0.0-...-3d09e97 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 11 Imported by: 0

README

gRPC API

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(cfg *cmd.Config, ws shared.WebhookServer) *grpc.Server

Types

type Server

type Server struct {
	pb.UnimplementedWebhookServiceServer
	// contains filtered or unexported fields
}

func (*Server) Check

func (*Server) GetWebhook

func (s *Server) GetWebhook(ctx context.Context, req *pb.GetWebhookRequest) (*pb.GetWebhookResponse, error)

func (*Server) GetWebhooks

func (s *Server) GetWebhooks(ctx context.Context, req *pb.ListWebhooksRequest) (*pb.ListWebhooksResponse, error)

func (*Server) SendWebhook

func (s *Server) SendWebhook(ctx context.Context, req *pb.SendWebhookRequest) (*pb.SendWebhookResponse, error)

func (*Server) Watch

Jump to

Keyboard shortcuts

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