authentication

package
v1.0.0-...-47f3d97 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package authentication is a generated protocol buffer package.

It is generated from these files:

authentication_service.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