pb

package
v0.0.0-...-ca0d4d1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

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 {
	SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error)
}

AuthClient is the client API for Auth service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAuthClient

func NewAuthClient(cc grpc.ClientConnInterface) AuthClient

type AuthServer

type AuthServer interface {
	SignIn(context.Context, *SignInRequest) (*SignInResponse, error)
}

AuthServer is the server API for Auth service.

type SignInRequest

type SignInRequest struct {
	Login                string   `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Ip                   string   `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignInRequest) Descriptor

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

func (*SignInRequest) GetIp

func (m *SignInRequest) GetIp() string

func (*SignInRequest) GetLogin

func (m *SignInRequest) GetLogin() string

func (*SignInRequest) GetPassword

func (m *SignInRequest) GetPassword() string

func (*SignInRequest) ProtoMessage

func (*SignInRequest) ProtoMessage()

func (*SignInRequest) Reset

func (m *SignInRequest) Reset()

func (*SignInRequest) String

func (m *SignInRequest) String() string

func (*SignInRequest) XXX_DiscardUnknown

func (m *SignInRequest) XXX_DiscardUnknown()

func (*SignInRequest) XXX_Marshal

func (m *SignInRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignInRequest) XXX_Merge

func (m *SignInRequest) XXX_Merge(src proto.Message)

func (*SignInRequest) XXX_Size

func (m *SignInRequest) XXX_Size() int

func (*SignInRequest) XXX_Unmarshal

func (m *SignInRequest) XXX_Unmarshal(b []byte) error

type SignInResponse

type SignInResponse struct {
	Ok                   bool     `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignInResponse) Descriptor

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

func (*SignInResponse) GetOk

func (m *SignInResponse) GetOk() bool

func (*SignInResponse) ProtoMessage

func (*SignInResponse) ProtoMessage()

func (*SignInResponse) Reset

func (m *SignInResponse) Reset()

func (*SignInResponse) String

func (m *SignInResponse) String() string

func (*SignInResponse) XXX_DiscardUnknown

func (m *SignInResponse) XXX_DiscardUnknown()

func (*SignInResponse) XXX_Marshal

func (m *SignInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignInResponse) XXX_Merge

func (m *SignInResponse) XXX_Merge(src proto.Message)

func (*SignInResponse) XXX_Size

func (m *SignInResponse) XXX_Size() int

func (*SignInResponse) XXX_Unmarshal

func (m *SignInResponse) XXX_Unmarshal(b []byte) error

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthServer) SignIn

Jump to

Keyboard shortcuts

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