rpc

package
v0.0.0-...-fe71e9d Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrEmptyAPIKey       = "empty API key"
	ErrEmptyService      = "empty service name"
	ErrEmptyPermission   = "empty permission name"
	ErrAppInactive       = "application is disabled"
	ErrUserInactive      = "user is disabled"
	ErrRateLimitExceeded = "rate limit exceeded"
	ErrUnauthorized      = "unauthorized request"
)

Error messages

View Source
const (
	ApplicationCacheDuration = 30 * time.Second
)

Cache settings

Variables

This section is empty.

Functions

This section is empty.

Types

type Dev

type Dev struct {
	*dev.UnimplementedDevServiceServer
	Store   datastore.Datastore
	Limiter *ratelimit.RateLimit
	Cache   *cache.Cache
}

Dev implements the DevServiceServer interface

func (Dev) Validate

func (d Dev) Validate(ctx context.Context, request *dev.APIValidationRequest) (*dev.APIValidationResponse, error)

Validate checks if an API key is valid and has the required permissions

Jump to

Keyboard shortcuts

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