hservice

package
v0.0.0-...-0108d89 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package hservice is a generated protocol buffer package.

It is generated from these files:

hservice.proto

It has these top-level messages:

MessageRequest
MessageReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHookServiceServer

func RegisterHookServiceServer(s *grpc.Server, srv HookServiceServer)

Types

type HookServiceClient

type HookServiceClient interface {
	// Sends a greeting
	Send(ctx context.Context, in *MessageRequest, opts ...grpc.CallOption) (*MessageReply, error)
}

func NewHookServiceClient

func NewHookServiceClient(cc *grpc.ClientConn) HookServiceClient

type HookServiceServer

type HookServiceServer interface {
	// Sends a greeting
	Send(context.Context, *MessageRequest) (*MessageReply, error)
}

type MessageReply

type MessageReply struct {
	Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
}

The response message containing an ok (true or false)

func (*MessageReply) Descriptor

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

func (*MessageReply) ProtoMessage

func (*MessageReply) ProtoMessage()

func (*MessageReply) Reset

func (m *MessageReply) Reset()

func (*MessageReply) String

func (m *MessageReply) String() string

type MessageRequest

type MessageRequest struct {
	Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}

The request message containing the message value

func (*MessageRequest) Descriptor

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

func (*MessageRequest) ProtoMessage

func (*MessageRequest) ProtoMessage()

func (*MessageRequest) Reset

func (m *MessageRequest) Reset()

func (*MessageRequest) String

func (m *MessageRequest) String() string

Jump to

Keyboard shortcuts

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