service

package
v3.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-micro source: service.proto

Code generated by protoc-gen-micro source: service.proto

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegisterEndpoints

func NewRegisterEndpoints() []*api.Endpoint

func RegisterRegisterServer

func RegisterRegisterServer(s server.Server, sh RegisterServer, opts ...server.HandlerOption) error

Types

type RegisterClient

type RegisterClient interface {
	LookupService(ctx context.Context, req *proto.LookupRequest, opts ...client.CallOption) (*proto.LookupResponse, error)
	Register(ctx context.Context, req *proto.Service, opts ...client.CallOption) (*proto.EmptyResponse, error)
	Deregister(ctx context.Context, req *proto.Service, opts ...client.CallOption) (*proto.EmptyResponse, error)
	ListServices(ctx context.Context, req *proto.ListRequest, opts ...client.CallOption) (*proto.ListResponse, error)
	Watch(ctx context.Context, req *proto.WatchRequest, opts ...client.CallOption) (Register_WatchClient, error)
}

func NewRegisterClient

func NewRegisterClient(name string, c client.Client) RegisterClient

type RegisterServer

type RegisterServer interface {
	LookupService(ctx context.Context, req *proto.LookupRequest, rsp *proto.LookupResponse) error
	Register(ctx context.Context, req *proto.Service, rsp *proto.EmptyResponse) error
	Deregister(ctx context.Context, req *proto.Service, rsp *proto.EmptyResponse) error
	ListServices(ctx context.Context, req *proto.ListRequest, rsp *proto.ListResponse) error
	Watch(ctx context.Context, req *proto.WatchRequest, stream Register_WatchStream) error
}

type Register_WatchClient

type Register_WatchClient interface {
	Context() context.Context
	SendMsg(msg interface{}) error
	RecvMsg(msg interface{}) error
	Close() error
	Recv() (*proto.Result, error)
}

type Register_WatchStream

type Register_WatchStream interface {
	Context() context.Context
	SendMsg(msg interface{}) error
	RecvMsg(msg interface{}) error
	Close() error
	Send(msg *proto.Result) error
}

Jump to

Keyboard shortcuts

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