server

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IS

type IS struct {
	v1.UnimplementedUsersInternalServiceServer
	// contains filtered or unexported fields
}

IS is an internal server.

func NewInternal

func NewInternal(store *store.S) *IS

NewInternal creates an internal server.

func (*IS) ListAPIKeys

func (s *IS) ListAPIKeys(
	ctx context.Context,
	req *v1.ListAPIKeysRequest,
) (*v1.ListAPIKeysResponse, error)

ListAPIKeys lists all API keys.

func (*IS) Run

func (s *IS) Run(port int) error

Run starts the gRPC server.

type S

type S struct {
	v1.UnimplementedUsersServiceServer
	// contains filtered or unexported fields
}

S is a server.

func New

func New(store *store.S) *S

New creates a server.

func (*S) CreateAPIKey

func (s *S) CreateAPIKey(
	ctx context.Context,
	req *v1.CreateAPIKeyRequest,
) (*v1.APIKey, error)

CreateAPIKey creates an API key.

func (*S) DeleteAPIKey

func (s *S) DeleteAPIKey(
	ctx context.Context,
	req *v1.DeleteAPIKeyRequest,
) (*v1.DeleteAPIKeyResponse, error)

DeleteAPIKey deletes an API key.

func (*S) ListAPIKeys

func (s *S) ListAPIKeys(
	ctx context.Context,
	req *v1.ListAPIKeysRequest,
) (*v1.ListAPIKeysResponse, error)

ListAPIKeys lists API keys.

func (*S) Run

func (s *S) Run(ctx context.Context, port int, authConfig config.AuthConfig) error

Run starts the gRPC server.

func (*S) Stop

func (s *S) Stop()

Stop stops the gRPC server.

Jump to

Keyboard shortcuts

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