Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Name of the auth api Name = "go.micro.api.auth" // Address is the api address Address = ":8011" )
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is an impementation of the auth api
func NewHandler ¶
func NewHandler(srv micro.Service) *Handler
NewHandler returns an initialized Handler
func (*Handler) Verify ¶
func (h *Handler) Verify(ctx context.Context, req *pb.VerifyRequest, rsp *pb.VerifyResponse) error
Verify gets a token and verifies it with the auth package
Click to show internal directories.
Click to hide internal directories.