v1

package
v0.0.0-...-a997149 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2019 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServer

type AuthServer struct {
	// contains filtered or unexported fields
}

func NewAuthServer

func NewAuthServer(db *gorm.DB, settings *config.ServerConfig) *AuthServer

func (*AuthServer) CreateUser

func (*AuthServer) GetSettings

func (s *AuthServer) GetSettings() *config.ServerConfig

func (*AuthServer) Login

func (s *AuthServer) Login(ctx context.Context, in *v1.LoginRequest) (*v1.LoginResponse, error)

type Claims

type Claims struct {
	UserInfo
	jwt.StandardClaims
}

type HealthServer

type HealthServer struct {
	// contains filtered or unexported fields
}

func NewHealthServer

func NewHealthServer() *HealthServer

func (*HealthServer) Check

func (*HealthServer) SetServingStatus

func (s *HealthServer) SetServingStatus(service string, status v1.HealthCheckResponse_ServingStatus)

func (*HealthServer) Watch

type MetricServer

type MetricServer struct{}

func NewMetricServer

func NewMetricServer() *MetricServer

func (*MetricServer) GetMetrics

func (s *MetricServer) GetMetrics(ctx context.Context, in *v1.MetricsRequest) (*v1.MetricsResponse, error)

type UserInfo

type UserInfo struct {
	Username    string `json:"user"`
	Roles       []int  `json:"roles"`
	Permissions []int  `json:"permissions"`
}

Jump to

Keyboard shortcuts

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