server

package
v0.0.0-...-26006ee Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandServer

type CommandServer struct {
	api.UnimplementedCommandsServer
}

func NewCommandServer

func NewCommandServer() *CommandServer

func (*CommandServer) Echo

func (*CommandServer) Get

func (*CommandServer) Set

type Option

type Option func(*Server)

func WithLogger

func WithLogger(logger *slog.Logger) Option

func WithPort

func WithPort(port string) Option

func WithScheduler

func WithScheduler(scheduler schedule.CronjobRepository) Option

func WithTTLCleanupTime

func WithTTLCleanupTime(ttlCleanupTime int64) Option

type Server

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

func New

func New(options ...Option) *Server

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

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