rng

package
v0.0.0-...-de4e6b7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package rng is a generated protocol buffer package.

It is generated from these files:

rng.proto

It has these top-level messages:

RngRequest
RngResponse

Package rng is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRngHandler

func RegisterRngHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterRngHandler registers the http handlers for service Rng to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterRngHandlerFromEndpoint

func RegisterRngHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterRngHandlerFromEndpoint is same as RegisterRngHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterRngServer

func RegisterRngServer(s *grpc.Server, srv RngServer)

Types

type RngClient

type RngClient interface {
	GenerateRandom(ctx context.Context, in *RngRequest, opts ...grpc.CallOption) (*RngResponse, error)
}

func NewRngClient

func NewRngClient(cc *grpc.ClientConn) RngClient

type RngRequest

type RngRequest struct {
	Length int32 `protobuf:"varint,1,opt,name=length" json:"length,omitempty"`
}

func (*RngRequest) Descriptor

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

func (*RngRequest) ProtoMessage

func (*RngRequest) ProtoMessage()

func (*RngRequest) Reset

func (m *RngRequest) Reset()

func (*RngRequest) String

func (m *RngRequest) String() string

type RngResponse

type RngResponse struct {
	Random string `protobuf:"bytes,1,opt,name=random" json:"random,omitempty"`
}

func (*RngResponse) Descriptor

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

func (*RngResponse) ProtoMessage

func (*RngResponse) ProtoMessage()

func (*RngResponse) Reset

func (m *RngResponse) Reset()

func (*RngResponse) String

func (m *RngResponse) String() string

type RngServer

type RngServer interface {
	GenerateRandom(context.Context, *RngRequest) (*RngResponse, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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