go_micro_srv_auth

package
v0.0.0-...-1951922 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package go_micro_srv_auth is a generated protocol buffer package.

It is generated from these files:

auth.proto

It has these top-level messages:

CreateJwtRequest
CreateJwtResponse
ValidateJwtRequest
ValidateJwtResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAuthHandler

func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption)

Types

type Auth

type Auth struct {
	AuthHandler
}

func (*Auth) CreateJwt

func (h *Auth) CreateJwt(ctx context.Context, in *CreateJwtRequest, out *CreateJwtResponse) error

func (*Auth) ValidateJwt

func (h *Auth) ValidateJwt(ctx context.Context, in *ValidateJwtRequest, out *ValidateJwtResponse) error

type AuthClient

type AuthClient interface {
	CreateJwt(ctx context.Context, in *CreateJwtRequest, opts ...client.CallOption) (*CreateJwtResponse, error)
	ValidateJwt(ctx context.Context, in *ValidateJwtRequest, opts ...client.CallOption) (*ValidateJwtResponse, error)
}

func NewAuthClient

func NewAuthClient(serviceName string, c client.Client) AuthClient

type AuthHandler

type AuthHandler interface {
	CreateJwt(context.Context, *CreateJwtRequest, *CreateJwtResponse) error
	ValidateJwt(context.Context, *ValidateJwtRequest, *ValidateJwtResponse) error
}

type CreateJwtRequest

type CreateJwtRequest struct {
	Username string `protobuf:"bytes,100,opt,name=username" json:"username,omitempty"`
	Password string `protobuf:"bytes,101,opt,name=password" json:"password,omitempty"`
}

func (*CreateJwtRequest) Descriptor

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

func (*CreateJwtRequest) GetPassword

func (m *CreateJwtRequest) GetPassword() string

func (*CreateJwtRequest) GetUsername

func (m *CreateJwtRequest) GetUsername() string

func (*CreateJwtRequest) ProtoMessage

func (*CreateJwtRequest) ProtoMessage()

func (*CreateJwtRequest) Reset

func (m *CreateJwtRequest) Reset()

func (*CreateJwtRequest) String

func (m *CreateJwtRequest) String() string

type CreateJwtResponse

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

func (*CreateJwtResponse) Descriptor

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

func (*CreateJwtResponse) GetToken

func (m *CreateJwtResponse) GetToken() string

func (*CreateJwtResponse) ProtoMessage

func (*CreateJwtResponse) ProtoMessage()

func (*CreateJwtResponse) Reset

func (m *CreateJwtResponse) Reset()

func (*CreateJwtResponse) String

func (m *CreateJwtResponse) String() string

type ValidateJwtRequest

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

func (*ValidateJwtRequest) Descriptor

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

func (*ValidateJwtRequest) GetToken

func (m *ValidateJwtRequest) GetToken() string

func (*ValidateJwtRequest) ProtoMessage

func (*ValidateJwtRequest) ProtoMessage()

func (*ValidateJwtRequest) Reset

func (m *ValidateJwtRequest) Reset()

func (*ValidateJwtRequest) String

func (m *ValidateJwtRequest) String() string

type ValidateJwtResponse

type ValidateJwtResponse struct {
	Valid bool   `protobuf:"varint,201,opt,name=valid" json:"valid,omitempty"`
	Error string `protobuf:"bytes,202,opt,name=error" json:"error,omitempty"`
}

func (*ValidateJwtResponse) Descriptor

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

func (*ValidateJwtResponse) GetError

func (m *ValidateJwtResponse) GetError() string

func (*ValidateJwtResponse) GetValid

func (m *ValidateJwtResponse) GetValid() bool

func (*ValidateJwtResponse) ProtoMessage

func (*ValidateJwtResponse) ProtoMessage()

func (*ValidateJwtResponse) Reset

func (m *ValidateJwtResponse) Reset()

func (*ValidateJwtResponse) String

func (m *ValidateJwtResponse) String() string

Jump to

Keyboard shortcuts

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