auth

package
v0.0.0-...-a649600 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package auth is a generated protocol buffer package.

It is generated from these files:

github.com/ship-os/ship-micro/examples/booking/srv/auth/proto/auth.proto

It has these top-level messages:

Request
Result
Customer

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 AuthHandler

type AuthHandler interface {
	VerifyToken(context.Context, *Request, *Result) error
}

type AuthService

type AuthService interface {
	VerifyToken(ctx context.Context, in *Request, opts ...client.CallOption) (*Result, error)
}

func NewAuthService

func NewAuthService(serviceName string, c client.Client) AuthService

Jump to

Keyboard shortcuts

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