auth

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package auth is a generated protocol buffer package.

It is generated from these files:

auth.proto

It has these top-level messages:

CredentialsRequest
CredentialsResponse

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuth   = fmt.Errorf("proto: integer overflow")
)

Functions

func CredentialsFunc

func CredentialsFunc(ctx context.Context, c session.Caller) func(string) (string, string, error)

func RegisterAuthServer

func RegisterAuthServer(s *grpc.Server, srv AuthServer)

Types

type AuthClient

type AuthClient interface {
	Credentials(ctx context.Context, in *CredentialsRequest, opts ...grpc.CallOption) (*CredentialsResponse, error)
}

func NewAuthClient

func NewAuthClient(cc *grpc.ClientConn) AuthClient

type AuthServer

type AuthServer interface {
	Credentials(context.Context, *CredentialsRequest) (*CredentialsResponse, error)
}

type CredentialsRequest

type CredentialsRequest struct {
	Host string `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"`
}

func (*CredentialsRequest) Descriptor

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

func (*CredentialsRequest) Equal

func (this *CredentialsRequest) Equal(that interface{}) bool

func (*CredentialsRequest) GetHost

func (m *CredentialsRequest) GetHost() string

func (*CredentialsRequest) GoString

func (this *CredentialsRequest) GoString() string

func (*CredentialsRequest) Marshal

func (m *CredentialsRequest) Marshal() (dAtA []byte, err error)

func (*CredentialsRequest) MarshalTo

func (m *CredentialsRequest) MarshalTo(dAtA []byte) (int, error)

func (*CredentialsRequest) ProtoMessage

func (*CredentialsRequest) ProtoMessage()

func (*CredentialsRequest) Reset

func (m *CredentialsRequest) Reset()

func (*CredentialsRequest) Size

func (m *CredentialsRequest) Size() (n int)

func (*CredentialsRequest) String

func (this *CredentialsRequest) String() string

func (*CredentialsRequest) Unmarshal

func (m *CredentialsRequest) Unmarshal(dAtA []byte) error

type CredentialsResponse

type CredentialsResponse struct {
	Username string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"`
	Secret   string `protobuf:"bytes,2,opt,name=Secret,proto3" json:"Secret,omitempty"`
}

func (*CredentialsResponse) Descriptor

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

func (*CredentialsResponse) Equal

func (this *CredentialsResponse) Equal(that interface{}) bool

func (*CredentialsResponse) GetSecret

func (m *CredentialsResponse) GetSecret() string

func (*CredentialsResponse) GetUsername

func (m *CredentialsResponse) GetUsername() string

func (*CredentialsResponse) GoString

func (this *CredentialsResponse) GoString() string

func (*CredentialsResponse) Marshal

func (m *CredentialsResponse) Marshal() (dAtA []byte, err error)

func (*CredentialsResponse) MarshalTo

func (m *CredentialsResponse) MarshalTo(dAtA []byte) (int, error)

func (*CredentialsResponse) ProtoMessage

func (*CredentialsResponse) ProtoMessage()

func (*CredentialsResponse) Reset

func (m *CredentialsResponse) Reset()

func (*CredentialsResponse) Size

func (m *CredentialsResponse) Size() (n int)

func (*CredentialsResponse) String

func (this *CredentialsResponse) String() string

func (*CredentialsResponse) Unmarshal

func (m *CredentialsResponse) Unmarshal(dAtA []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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