auth

package
Version: v0.0.0-...-7af8fb1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package auth is a generated protocol buffer package.

It is generated from these files:

auth/auth.proto

It has these top-level messages:

User
LoginRequest
LoginResponse
RegisterRequest
RegisterResponse
SignoutRequest
SignoutResponse
VerifyTokenRequest
VerifyTokenResponse
GetAllUsersRequest
GetAllUsersResponse
GetUserRequest
GetUserResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAuthServer

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

Types

type AuthClient

type AuthClient interface {
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	Signout(ctx context.Context, in *SignoutRequest, opts ...grpc.CallOption) (*SignoutResponse, error)
	VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error)
	GetAllUsers(ctx context.Context, in *GetAllUsersRequest, opts ...grpc.CallOption) (*GetAllUsersResponse, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
}

func NewAuthClient

func NewAuthClient(cc *grpc.ClientConn) AuthClient

type GetAllUsersRequest

type GetAllUsersRequest struct {
}

func (*GetAllUsersRequest) Descriptor

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

func (*GetAllUsersRequest) ProtoMessage

func (*GetAllUsersRequest) ProtoMessage()

func (*GetAllUsersRequest) Reset

func (m *GetAllUsersRequest) Reset()

func (*GetAllUsersRequest) String

func (m *GetAllUsersRequest) String() string

type GetAllUsersResponse

type GetAllUsersResponse struct {
	Users []*User `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
}

func (*GetAllUsersResponse) Descriptor

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

func (*GetAllUsersResponse) GetUsers

func (m *GetAllUsersResponse) GetUsers() []*User

func (*GetAllUsersResponse) ProtoMessage

func (*GetAllUsersResponse) ProtoMessage()

func (*GetAllUsersResponse) Reset

func (m *GetAllUsersResponse) Reset()

func (*GetAllUsersResponse) String

func (m *GetAllUsersResponse) String() string

type GetUserRequest

type GetUserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
}

func (*GetUserRequest) Descriptor

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

func (*GetUserRequest) GetUsername

func (m *GetUserRequest) GetUsername() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) Reset

func (m *GetUserRequest) Reset()

func (*GetUserRequest) String

func (m *GetUserRequest) String() string

type GetUserResponse

type GetUserResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
}

func (*GetUserResponse) Descriptor

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

func (*GetUserResponse) GetUser

func (m *GetUserResponse) GetUser() *User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) Reset

func (m *GetUserResponse) Reset()

func (*GetUserResponse) String

func (m *GetUserResponse) String() string

type LoginRequest

type LoginRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
}

func (*LoginRequest) Descriptor

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

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 LoginResponse

type LoginResponse struct {
	Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
}

func (*LoginResponse) Descriptor

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

func (*LoginResponse) GetToken

func (m *LoginResponse) GetToken() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) Reset

func (m *LoginResponse) Reset()

func (*LoginResponse) String

func (m *LoginResponse) String() string

type RegisterRequest

type RegisterRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password" json:"password,omitempty"`
}

func (*RegisterRequest) Descriptor

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

func (*RegisterRequest) GetEmail

func (m *RegisterRequest) GetEmail() string

func (*RegisterRequest) GetPassword

func (m *RegisterRequest) GetPassword() string

func (*RegisterRequest) GetUsername

func (m *RegisterRequest) GetUsername() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) Reset

func (m *RegisterRequest) Reset()

func (*RegisterRequest) String

func (m *RegisterRequest) String() string

type RegisterResponse

type RegisterResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
}

func (*RegisterResponse) Descriptor

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

func (*RegisterResponse) GetOk

func (m *RegisterResponse) GetOk() bool

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) Reset

func (m *RegisterResponse) Reset()

func (*RegisterResponse) String

func (m *RegisterResponse) String() string

type SignoutRequest

type SignoutRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
}

func (*SignoutRequest) Descriptor

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

func (*SignoutRequest) GetToken

func (m *SignoutRequest) GetToken() string

func (*SignoutRequest) ProtoMessage

func (*SignoutRequest) ProtoMessage()

func (*SignoutRequest) Reset

func (m *SignoutRequest) Reset()

func (*SignoutRequest) String

func (m *SignoutRequest) String() string

type SignoutResponse

type SignoutResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
}

func (*SignoutResponse) Descriptor

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

func (*SignoutResponse) GetOk

func (m *SignoutResponse) GetOk() bool

func (*SignoutResponse) ProtoMessage

func (*SignoutResponse) ProtoMessage()

func (*SignoutResponse) Reset

func (m *SignoutResponse) Reset()

func (*SignoutResponse) String

func (m *SignoutResponse) String() string

type User

type User struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password" json:"password,omitempty"`
}

func (*User) Descriptor

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

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetPassword

func (m *User) GetPassword() string

func (*User) GetUsername

func (m *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

type VerifyTokenRequest

type VerifyTokenRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
}

func (*VerifyTokenRequest) Descriptor

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

func (*VerifyTokenRequest) GetToken

func (m *VerifyTokenRequest) GetToken() string

func (*VerifyTokenRequest) ProtoMessage

func (*VerifyTokenRequest) ProtoMessage()

func (*VerifyTokenRequest) Reset

func (m *VerifyTokenRequest) Reset()

func (*VerifyTokenRequest) String

func (m *VerifyTokenRequest) String() string

type VerifyTokenResponse

type VerifyTokenResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
}

func (*VerifyTokenResponse) Descriptor

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

func (*VerifyTokenResponse) GetOk

func (m *VerifyTokenResponse) GetOk() bool

func (*VerifyTokenResponse) ProtoMessage

func (*VerifyTokenResponse) ProtoMessage()

func (*VerifyTokenResponse) Reset

func (m *VerifyTokenResponse) Reset()

func (*VerifyTokenResponse) String

func (m *VerifyTokenResponse) String() string

Source Files

Jump to

Keyboard shortcuts

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