helloworld

package
v0.0.0-...-c5376a2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

This code was autogenerated from helloworld.proto, do not edit.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthHelloworld        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHelloworld          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupHelloworld = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	Greeter *GreeterClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(nc nrpc.NatsConn) *Client

func (*Client) SetEncoding

func (c *Client) SetEncoding(encoding string)

func (*Client) SetTimeout

func (c *Client) SetTimeout(t time.Duration)

type GreeterClient

type GreeterClient struct {
	PkgSubject string
	Subject    string
	Encoding   string
	Timeout    time.Duration
	// contains filtered or unexported fields
}

func NewGreeterClient

func NewGreeterClient(nc nrpc.NatsConn) *GreeterClient

func (*GreeterClient) SayHello

func (c *GreeterClient) SayHello(req HelloRequest) (resp HelloReply, err error)

type GreeterHandler

type GreeterHandler struct {
	// contains filtered or unexported fields
}

GreeterHandler provides a NATS subscription handler that can serve a subscription using a given GreeterServer implementation.

func NewGreeterConcurrentHandler

func NewGreeterConcurrentHandler(workers *nrpc.WorkerPool, s GreeterServer) *GreeterHandler

func NewGreeterHandler

func NewGreeterHandler(s GreeterServer) *GreeterHandler

func (*GreeterHandler) Handler

func (h *GreeterHandler) Handler(msg *nats.Msg)

func (*GreeterHandler) SetEncodings

func (h *GreeterHandler) SetEncodings(encodings []string)

SetEncodings sets the output encodings when using a '*Publish' function

func (*GreeterHandler) SetMiddleware

func (h *GreeterHandler) SetMiddleware(ms []nrpc.Middleware)

func (*GreeterHandler) SetNats

func (h *GreeterHandler) SetNats(nc *nats.Conn)

func (*GreeterHandler) Subject

func (h *GreeterHandler) Subject() string

type GreeterServer

type GreeterServer interface {
	SayHello(ctx context.Context, req *HelloRequest) (resp *HelloReply, err error)
}

GreeterServer is the interface that providers of the service Greeter should implement.

type HelloReply

type HelloReply struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message containing the greetings

func NewPopulatedHelloReply

func NewPopulatedHelloReply(r randyHelloworld, easy bool) *HelloReply

func (*HelloReply) Descriptor

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

func (*HelloReply) Equal

func (this *HelloReply) Equal(that interface{}) bool

func (*HelloReply) GetMessage

func (m *HelloReply) GetMessage() string

func (*HelloReply) GoString

func (this *HelloReply) GoString() string

func (*HelloReply) Marshal

func (m *HelloReply) Marshal() (dAtA []byte, err error)

func (*HelloReply) MarshalTo

func (m *HelloReply) MarshalTo(dAtA []byte) (int, error)

func (*HelloReply) MarshalToSizedBuffer

func (m *HelloReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) Reset

func (m *HelloReply) Reset()

func (*HelloReply) Size

func (m *HelloReply) Size() (n int)

func (*HelloReply) String

func (this *HelloReply) String() string

func (*HelloReply) Unmarshal

func (m *HelloReply) Unmarshal(dAtA []byte) error

func (*HelloReply) VerboseEqual

func (this *HelloReply) VerboseEqual(that interface{}) error

func (*HelloReply) XXX_DiscardUnknown

func (m *HelloReply) XXX_DiscardUnknown()

func (*HelloReply) XXX_Marshal

func (m *HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HelloReply) XXX_Merge

func (m *HelloReply) XXX_Merge(src proto.Message)

func (*HelloReply) XXX_Size

func (m *HelloReply) XXX_Size() int

func (*HelloReply) XXX_Unmarshal

func (m *HelloReply) XXX_Unmarshal(b []byte) error

type HelloRequest

type HelloRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message containing the user's name.

func NewPopulatedHelloRequest

func NewPopulatedHelloRequest(r randyHelloworld, easy bool) *HelloRequest

func (*HelloRequest) Descriptor

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

func (*HelloRequest) Equal

func (this *HelloRequest) Equal(that interface{}) bool

func (*HelloRequest) GetName

func (m *HelloRequest) GetName() string

func (*HelloRequest) GoString

func (this *HelloRequest) GoString() string

func (*HelloRequest) Marshal

func (m *HelloRequest) Marshal() (dAtA []byte, err error)

func (*HelloRequest) MarshalTo

func (m *HelloRequest) MarshalTo(dAtA []byte) (int, error)

func (*HelloRequest) MarshalToSizedBuffer

func (m *HelloRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) Reset

func (m *HelloRequest) Reset()

func (*HelloRequest) Size

func (m *HelloRequest) Size() (n int)

func (*HelloRequest) String

func (this *HelloRequest) String() string

func (*HelloRequest) Unmarshal

func (m *HelloRequest) Unmarshal(dAtA []byte) error

func (*HelloRequest) VerboseEqual

func (this *HelloRequest) VerboseEqual(that interface{}) error

func (*HelloRequest) XXX_DiscardUnknown

func (m *HelloRequest) XXX_DiscardUnknown()

func (*HelloRequest) XXX_Marshal

func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HelloRequest) XXX_Merge

func (m *HelloRequest) XXX_Merge(src proto.Message)

func (*HelloRequest) XXX_Size

func (m *HelloRequest) XXX_Size() int

func (*HelloRequest) XXX_Unmarshal

func (m *HelloRequest) XXX_Unmarshal(b []byte) error

type UnimplementedGreeterServer

type UnimplementedGreeterServer struct{}

func (*UnimplementedGreeterServer) SayHello

Jump to

Keyboard shortcuts

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