Documentation ¶
Index ¶
- func NewServer(cfg *cmd.Config, ws shared.WebhookServer) *grpc.Server
- type Server
- func (s *Server) Check(ctx context.Context, req *pb.HealthCheckRequest) (*pb.HealthCheckResponse, error)
- func (s *Server) GetWebhook(ctx context.Context, req *pb.GetWebhookRequest) (*pb.GetWebhookResponse, error)
- func (s *Server) GetWebhooks(ctx context.Context, req *pb.ListWebhooksRequest) (*pb.ListWebhooksResponse, error)
- func (s *Server) SendWebhook(ctx context.Context, req *pb.SendWebhookRequest) (*pb.SendWebhookResponse, error)
- func (s *Server) Watch(req *pb.HealthCheckRequest, stream pb.WebhookService_WatchServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { pb.UnimplementedWebhookServiceServer // contains filtered or unexported fields }
func (*Server) Check ¶
func (s *Server) Check(ctx context.Context, req *pb.HealthCheckRequest) (*pb.HealthCheckResponse, error)
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 ¶
func (s *Server) Watch(req *pb.HealthCheckRequest, stream pb.WebhookService_WatchServer) error
Click to show internal directories.
Click to hide internal directories.