diato

package
Version: v0.0.0-...-c9b4a5a Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package diato is a generated protocol buffer package.

It is generated from these files:

diato.proto

It has these top-level messages:

UserBackendRequest
UserBackendResponse
ConfigContents

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServerServer

func RegisterServerServer(s *grpc.Server, srv ServerServer)

func RegisterUserBackendServer

func RegisterUserBackendServer(s *grpc.Server, srv UserBackendServer)

Types

type ConfigContents

type ConfigContents struct {
	Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"`
}

func (*ConfigContents) Descriptor

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

func (*ConfigContents) GetContents

func (m *ConfigContents) GetContents() []byte

func (*ConfigContents) ProtoMessage

func (*ConfigContents) ProtoMessage()

func (*ConfigContents) Reset

func (m *ConfigContents) Reset()

func (*ConfigContents) String

func (m *ConfigContents) String() string

type ServerClient

type ServerClient interface {
	GetConfigContents(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ConfigContents, error)
}

func NewServerClient

func NewServerClient(cc *grpc.ClientConn) ServerClient

type ServerServer

type ServerServer interface {
	GetConfigContents(context.Context, *google_protobuf.Empty) (*ConfigContents, error)
}

type UserBackendClient

type UserBackendClient interface {
	GetServerForUser(ctx context.Context, in *UserBackendRequest, opts ...grpc.CallOption) (*UserBackendResponse, error)
}

func NewUserBackendClient

func NewUserBackendClient(cc *grpc.ClientConn) UserBackendClient

type UserBackendRequest

type UserBackendRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*UserBackendRequest) Descriptor

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

func (*UserBackendRequest) GetName

func (m *UserBackendRequest) GetName() string

func (*UserBackendRequest) ProtoMessage

func (*UserBackendRequest) ProtoMessage()

func (*UserBackendRequest) Reset

func (m *UserBackendRequest) Reset()

func (*UserBackendRequest) String

func (m *UserBackendRequest) String() string

type UserBackendResponse

type UserBackendResponse struct {
	Server string `protobuf:"bytes,1,opt,name=server" json:"server,omitempty"`
	Port   uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"`
}

func (*UserBackendResponse) Descriptor

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

func (*UserBackendResponse) GetPort

func (m *UserBackendResponse) GetPort() uint32

func (*UserBackendResponse) GetServer

func (m *UserBackendResponse) GetServer() string

func (*UserBackendResponse) ProtoMessage

func (*UserBackendResponse) ProtoMessage()

func (*UserBackendResponse) Reset

func (m *UserBackendResponse) Reset()

func (*UserBackendResponse) String

func (m *UserBackendResponse) String() string

type UserBackendServer

type UserBackendServer interface {
	GetServerForUser(context.Context, *UserBackendRequest) (*UserBackendResponse, error)
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL