example

package
v0.0.0-...-93f8c24 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_example_proto protoreflect.FileDescriptor

Functions

func RegisterExampleServiceServer

func RegisterExampleServiceServer(nc *nats.Conn, srv ExampleServiceServer, opts ...Option) (micro.Service, error)

Types

type ExampleServiceClient

type ExampleServiceClient interface {
	Echo(ctx context.Context, in *Hello, timeout time.Duration) (*Hello, error)
}

func NewExampleServiceClient

func NewExampleServiceClient(tr natspb.Transport) ExampleServiceClient

type ExampleServiceServer

type ExampleServiceServer interface {
	Echo(ctx context.Context, in *Hello) (*Hello, error)
}

type Hello

type Hello struct {
	Greeting string `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	// contains filtered or unexported fields
}

func (*Hello) Descriptor deprecated

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

Deprecated: Use Hello.ProtoReflect.Descriptor instead.

func (*Hello) GetGreeting

func (x *Hello) GetGreeting() string

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) ProtoReflect

func (x *Hello) ProtoReflect() protoreflect.Message

func (*Hello) Reset

func (x *Hello) Reset()

func (*Hello) String

func (x *Hello) String() string

type Option

type Option func(cfg *micro.Config)

func WithDoneHandler

func WithDoneHandler(h micro.DoneHandler) Option

func WithErrHandler

func WithErrHandler(h micro.ErrHandler) Option

func WithStatsHandler

func WithStatsHandler(h micro.StatsHandler) Option

Jump to

Keyboard shortcuts

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