authentication

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: Apache-2.0 Imports: 5 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package authentication is a generated protocol buffer package.

It is generated from these files:

authentication.proto

It has these top-level messages:

LoginRequest
LoginReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLoginServer

func RegisterLoginServer(s *grpc.Server, srv LoginServer)

Types

type LoginClient

type LoginClient interface {
	LoginCheck(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error)
}

func NewLoginClient

func NewLoginClient(cc *grpc.ClientConn) LoginClient

type LoginReply

type LoginReply struct {
	Result bool `protobuf:"varint,1,opt,name=result" json:"result,omitempty"`
}

The response message containing the result of login attempt. result value of true indicates success and false indicates failure

func (*LoginReply) Descriptor

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

func (*LoginReply) GetResult

func (m *LoginReply) GetResult() bool

func (*LoginReply) ProtoMessage

func (*LoginReply) ProtoMessage()

func (*LoginReply) Reset

func (m *LoginReply) Reset()

func (*LoginReply) String

func (m *LoginReply) String() string

type LoginRequest

type LoginRequest struct {
	UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName" json:"user_name,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
	ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId" json:"client_id,omitempty"`
}

The request message containing the user's name, password and client id

func (*LoginRequest) Descriptor

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

func (*LoginRequest) GetClientId

func (m *LoginRequest) GetClientId() string

func (*LoginRequest) GetPassword

func (m *LoginRequest) GetPassword() string

func (*LoginRequest) GetUserName

func (m *LoginRequest) GetUserName() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) Reset

func (m *LoginRequest) Reset()

func (*LoginRequest) String

func (m *LoginRequest) String() string

type LoginServer

type LoginServer interface {
	LoginCheck(context.Context, *LoginRequest) (*LoginReply, error)
}

Jump to

Keyboard shortcuts

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