proto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

webhook.proto

It has these top-level messages:

WebhookRequest
WebhookResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterWebhookServer

func RegisterWebhookServer(s *grpc.Server, srv WebhookServer)

Types

type WebhookClient

type WebhookClient interface {
	Register(ctx context.Context, in *WebhookRequest, opts ...grpc.CallOption) (*WebhookResponse, error)
	Remove(ctx context.Context, in *WebhookRequest, opts ...grpc.CallOption) (*WebhookResponse, error)
}

func NewWebhookClient

func NewWebhookClient(cc *grpc.ClientConn) WebhookClient

type WebhookRequest

type WebhookRequest struct {
	PayloadURL string `protobuf:"bytes,1,opt,name=payloadURL" json:"payloadURL,omitempty"`
}

func (*WebhookRequest) Descriptor

func (*WebhookRequest) Descriptor() ([]byte, []int)

func (*WebhookRequest) GetPayloadURL

func (m *WebhookRequest) GetPayloadURL() string

func (*WebhookRequest) ProtoMessage

func (*WebhookRequest) ProtoMessage()

func (*WebhookRequest) Reset

func (m *WebhookRequest) Reset()

func (*WebhookRequest) String

func (m *WebhookRequest) String() string

type WebhookResponse

type WebhookResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

func (*WebhookResponse) Descriptor

func (*WebhookResponse) Descriptor() ([]byte, []int)

func (*WebhookResponse) GetMessage

func (m *WebhookResponse) GetMessage() string

func (*WebhookResponse) ProtoMessage

func (*WebhookResponse) ProtoMessage()

func (*WebhookResponse) Reset

func (m *WebhookResponse) Reset()

func (*WebhookResponse) String

func (m *WebhookResponse) String() string

type WebhookServer

type WebhookServer interface {
	Register(context.Context, *WebhookRequest) (*WebhookResponse, error)
	Remove(context.Context, *WebhookRequest) (*WebhookResponse, error)
}

Jump to

Keyboard shortcuts

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