auth

package
v0.0.0-...-29ec7e5 Latest Latest
Warning

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

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

Documentation

Overview

Package auth is a generated protocol buffer package.

It is generated from these files:

pairing.proto

It has these top-level messages:

RegisterRequest
StatusReply

Index

Constants

This section is empty.

Variables

View Source
var Status_name = map[int32]string{
	0: "REJECTED",
	1: "WAITING_APPROVAL",
	2: "REGISTERED",
}
View Source
var Status_value = map[string]int32{
	"REJECTED":         0,
	"WAITING_APPROVAL": 1,
	"REGISTERED":       2,
}

Functions

func RegisterPairingServer

func RegisterPairingServer(s *grpc.Server, srv PairingServer)

Types

type PairingClient

type PairingClient interface {
	// Register a new client certificate
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*StatusReply, error)
	// Probe the status for the registered status
	Status(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*StatusReply, error)
}

func NewPairingClient

func NewPairingClient(cc *grpc.ClientConn) PairingClient

type PairingServer

type PairingServer interface {
	// Register a new client certificate
	Register(context.Context, *RegisterRequest) (*StatusReply, error)
	// Probe the status for the registered status
	Status(context.Context, *google_protobuf.Empty) (*StatusReply, error)
}

type RegisterRequest

type RegisterRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Location string `protobuf:"bytes,2,opt,name=location" json:"location,omitempty"`
	// Custom application data passed with
	// [proto3] ANY: https://developers.google.com/protocol-buffers/docs/proto3#any
	// [proto2] extensions: https://developers.google.com/protocol-buffers/docs/proto#extensions
	Details *google_protobuf1.Any `protobuf:"bytes,3,opt,name=details" json:"details,omitempty"`
}

func (*RegisterRequest) Descriptor

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

func (*RegisterRequest) GetDetails

func (m *RegisterRequest) GetDetails() *google_protobuf1.Any

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) Reset

func (m *RegisterRequest) Reset()

func (*RegisterRequest) String

func (m *RegisterRequest) String() string

type Status

type Status int32
const (
	Status_REJECTED         Status = 0
	Status_WAITING_APPROVAL Status = 1
	Status_REGISTERED       Status = 2
)

func (Status) EnumDescriptor

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

func (Status) String

func (x Status) String() string

type StatusReply

type StatusReply struct {
	Status  Status                `protobuf:"varint,1,opt,name=status,enum=auth.Status" json:"status,omitempty"`
	Details *google_protobuf1.Any `protobuf:"bytes,2,opt,name=details" json:"details,omitempty"`
}

func (*StatusReply) Descriptor

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

func (*StatusReply) GetDetails

func (m *StatusReply) GetDetails() *google_protobuf1.Any

func (*StatusReply) ProtoMessage

func (*StatusReply) ProtoMessage()

func (*StatusReply) Reset

func (m *StatusReply) Reset()

func (*StatusReply) String

func (m *StatusReply) String() string

Jump to

Keyboard shortcuts

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