auth

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 13 Imported by: 104

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuth   = fmt.Errorf("proto: integer overflow")
)

Functions

func CredentialsFunc

func CredentialsFunc(ctx context.Context, c session.Caller) func(string) (string, string, error)

func RegisterAuthServer

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

Types

type AuthClient

type AuthClient interface {
	Credentials(ctx context.Context, in *CredentialsRequest, opts ...grpc.CallOption) (*CredentialsResponse, 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.ClientConn) AuthClient

type AuthServer

type AuthServer interface {
	Credentials(context.Context, *CredentialsRequest) (*CredentialsResponse, error)
}

AuthServer is the server API for Auth service.

type CredentialsRequest

type CredentialsRequest struct {
	Host string `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"`
}

func (*CredentialsRequest) Descriptor

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

func (*CredentialsRequest) Equal

func (this *CredentialsRequest) Equal(that interface{}) bool

func (*CredentialsRequest) GetHost

func (m *CredentialsRequest) GetHost() string

func (*CredentialsRequest) GoString

func (this *CredentialsRequest) GoString() string

func (*CredentialsRequest) Marshal

func (m *CredentialsRequest) Marshal() (dAtA []byte, err error)

func (*CredentialsRequest) MarshalTo

func (m *CredentialsRequest) MarshalTo(dAtA []byte) (int, error)

func (*CredentialsRequest) ProtoMessage

func (*CredentialsRequest) ProtoMessage()

func (*CredentialsRequest) Reset

func (m *CredentialsRequest) Reset()

func (*CredentialsRequest) Size

func (m *CredentialsRequest) Size() (n int)

func (*CredentialsRequest) String

func (this *CredentialsRequest) String() string

func (*CredentialsRequest) Unmarshal

func (m *CredentialsRequest) Unmarshal(dAtA []byte) error

func (*CredentialsRequest) XXX_DiscardUnknown added in v0.4.0

func (m *CredentialsRequest) XXX_DiscardUnknown()

func (*CredentialsRequest) XXX_Marshal added in v0.4.0

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

func (*CredentialsRequest) XXX_Merge added in v0.4.0

func (dst *CredentialsRequest) XXX_Merge(src proto.Message)

func (*CredentialsRequest) XXX_Size added in v0.4.0

func (m *CredentialsRequest) XXX_Size() int

func (*CredentialsRequest) XXX_Unmarshal added in v0.4.0

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

type CredentialsResponse

type CredentialsResponse struct {
	Username string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"`
	Secret   string `protobuf:"bytes,2,opt,name=Secret,proto3" json:"Secret,omitempty"`
}

func (*CredentialsResponse) Descriptor

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

func (*CredentialsResponse) Equal

func (this *CredentialsResponse) Equal(that interface{}) bool

func (*CredentialsResponse) GetSecret

func (m *CredentialsResponse) GetSecret() string

func (*CredentialsResponse) GetUsername

func (m *CredentialsResponse) GetUsername() string

func (*CredentialsResponse) GoString

func (this *CredentialsResponse) GoString() string

func (*CredentialsResponse) Marshal

func (m *CredentialsResponse) Marshal() (dAtA []byte, err error)

func (*CredentialsResponse) MarshalTo

func (m *CredentialsResponse) MarshalTo(dAtA []byte) (int, error)

func (*CredentialsResponse) ProtoMessage

func (*CredentialsResponse) ProtoMessage()

func (*CredentialsResponse) Reset

func (m *CredentialsResponse) Reset()

func (*CredentialsResponse) Size

func (m *CredentialsResponse) Size() (n int)

func (*CredentialsResponse) String

func (this *CredentialsResponse) String() string

func (*CredentialsResponse) Unmarshal

func (m *CredentialsResponse) Unmarshal(dAtA []byte) error

func (*CredentialsResponse) XXX_DiscardUnknown added in v0.4.0

func (m *CredentialsResponse) XXX_DiscardUnknown()

func (*CredentialsResponse) XXX_Marshal added in v0.4.0

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

func (*CredentialsResponse) XXX_Merge added in v0.4.0

func (dst *CredentialsResponse) XXX_Merge(src proto.Message)

func (*CredentialsResponse) XXX_Size added in v0.4.0

func (m *CredentialsResponse) XXX_Size() int

func (*CredentialsResponse) XXX_Unmarshal added in v0.4.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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