bankldap

package
v0.0.0-...-82b07d1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package bankldap is a generated protocol buffer package.

It is generated from these files:

bankldap.proto

It has these top-level messages:

Credentials
Authenticated
User
Email
UserSummary
Health
Empty

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBankLdapServer

func RegisterBankLdapServer(s *grpc.Server, srv BankLdapServer)

Types

type Authenticated

type Authenticated struct {
	Authenticated bool `protobuf:"varint,1,opt,name=authenticated" json:"authenticated,omitempty"`
}

func (*Authenticated) Descriptor

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

func (*Authenticated) GetAuthenticated

func (m *Authenticated) GetAuthenticated() bool

func (*Authenticated) ProtoMessage

func (*Authenticated) ProtoMessage()

func (*Authenticated) Reset

func (m *Authenticated) Reset()

func (*Authenticated) String

func (m *Authenticated) String() string

type BankLdapClient

type BankLdapClient interface {
	Authenticate(ctx context.Context, in *Credentials, opts ...grpc.CallOption) (*Authenticated, error)
	Lookup(ctx context.Context, in *User, opts ...grpc.CallOption) (*UserSummary, error)
	Anumber(ctx context.Context, in *Email, opts ...grpc.CallOption) (*User, error)
	Status(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Health, error)
	Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}

func NewBankLdapClient

func NewBankLdapClient(cc *grpc.ClientConn) BankLdapClient

type BankLdapServer

type BankLdapServer interface {
	Authenticate(context.Context, *Credentials) (*Authenticated, error)
	Lookup(context.Context, *User) (*UserSummary, error)
	Anumber(context.Context, *Email) (*User, error)
	Status(context.Context, *Empty) (*Health, error)
	Ping(context.Context, *Empty) (*Empty, error)
}

type Credentials

type Credentials struct {
	Anumber  string `protobuf:"bytes,1,opt,name=anumber" json:"anumber,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
}

func (*Credentials) Descriptor

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

func (*Credentials) GetAnumber

func (m *Credentials) GetAnumber() string

func (*Credentials) GetPassword

func (m *Credentials) GetPassword() string

func (*Credentials) ProtoMessage

func (*Credentials) ProtoMessage()

func (*Credentials) Reset

func (m *Credentials) Reset()

func (*Credentials) String

func (m *Credentials) String() string

type Email

type Email struct {
	Email string `protobuf:"bytes,1,opt,name=email" json:"email,omitempty"`
}

func (*Email) Descriptor

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

func (*Email) GetEmail

func (m *Email) GetEmail() string

func (*Email) ProtoMessage

func (*Email) ProtoMessage()

func (*Email) Reset

func (m *Email) Reset()

func (*Email) String

func (m *Email) String() string

type Empty

type Empty struct {
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type Health

type Health struct {
	Status string `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
}

func (*Health) Descriptor

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

func (*Health) GetStatus

func (m *Health) GetStatus() string

func (*Health) ProtoMessage

func (*Health) ProtoMessage()

func (*Health) Reset

func (m *Health) Reset()

func (*Health) String

func (m *Health) String() string

type User

type User struct {
	Anumber string `protobuf:"bytes,1,opt,name=anumber" json:"anumber,omitempty"`
}

func (*User) Descriptor

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

func (*User) GetAnumber

func (m *User) GetAnumber() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

type UserSummary

type UserSummary struct {
	Username    string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
	FirstName   string `protobuf:"bytes,3,opt,name=first_name,json=firstName" json:"first_name,omitempty"`
	LastName    string `protobuf:"bytes,4,opt,name=last_name,json=lastName" json:"last_name,omitempty"`
	Email       string `protobuf:"bytes,5,opt,name=email" json:"email,omitempty"`
}

func (*UserSummary) Descriptor

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

func (*UserSummary) GetDisplayName

func (m *UserSummary) GetDisplayName() string

func (*UserSummary) GetEmail

func (m *UserSummary) GetEmail() string

func (*UserSummary) GetFirstName

func (m *UserSummary) GetFirstName() string

func (*UserSummary) GetLastName

func (m *UserSummary) GetLastName() string

func (*UserSummary) GetUsername

func (m *UserSummary) GetUsername() string

func (*UserSummary) ProtoMessage

func (*UserSummary) ProtoMessage()

func (*UserSummary) Reset

func (m *UserSummary) Reset()

func (*UserSummary) String

func (m *UserSummary) String() string

Jump to

Keyboard shortcuts

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