_proto

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package _proto is a generated protocol buffer package.

It is generated from these files:

_proto/lookaside.proto

It has these top-level messages:

Request
Response

Index

Constants

This section is empty.

Variables

View Source
var Request_RouterType_name = map[int32]string{
	0: "RANDOM",
	1: "ROUNDROBIN",
	2: "HASH",
}
View Source
var Request_RouterType_value = map[string]int32{
	"RANDOM":     0,
	"ROUNDROBIN": 1,
	"HASH":       2,
}

Functions

func RegisterLookasideServer

func RegisterLookasideServer(s *grpc.Server, srv LookasideServer)

Types

type LookasideClient

type LookasideClient interface {
	Resolve(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

func NewLookasideClient

func NewLookasideClient(cc *grpc.ClientConn) LookasideClient

type LookasideServer

type LookasideServer interface {
	Resolve(context.Context, *Request) (*Response, error)
}

type Request

type Request struct {
	Router  Request_RouterType `protobuf:"varint,1,opt,name=router,enum=_proto.Request_RouterType" json:"router,omitempty"`
	Service string             `protobuf:"bytes,2,opt,name=service" json:"service,omitempty"`
	Hash    []byte             `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
}

func (*Request) Descriptor

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

func (*Request) GetHash

func (m *Request) GetHash() []byte

func (*Request) GetRouter

func (m *Request) GetRouter() Request_RouterType

func (*Request) GetService

func (m *Request) GetService() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

type Request_RouterType

type Request_RouterType int32
const (
	Request_RANDOM     Request_RouterType = 0
	Request_ROUNDROBIN Request_RouterType = 1
	Request_HASH       Request_RouterType = 2
)

func (Request_RouterType) EnumDescriptor

func (Request_RouterType) EnumDescriptor() ([]byte, []int)

func (Request_RouterType) String

func (x Request_RouterType) String() string

type Response

type Response struct {
	Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
}

func (*Response) Descriptor

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

func (*Response) GetAddress

func (m *Response) GetAddress() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

Jump to

Keyboard shortcuts

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