grpccacheserver

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port                   string
	DefaultCacheExpiration time.Duration
	CleanupCacheInterval   time.Duration
	TokensFile             string
}

type Server

type Server struct {
	grpcCache.CacheServiceServer
	Tokens *tokens.Tokens
	Cahce  *cache.Cache
	Port   string
}

func New

func New() *Server

func NewWithConfig

func NewWithConfig(conf Config) *Server

func (*Server) Add added in v0.1.2

func (*Server) Count

func (*Server) Delete

func (s *Server) Delete(ctx context.Context, req *grpcCache.KeyRequest) (*emptypb.Empty, error)

func (*Server) Get

func (*Server) Login

func (*Server) Replace added in v0.1.2

func (*Server) RunServer

func (s *Server) RunServer()

func (*Server) Set

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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