repos

package
v0.0.0-...-fd6e82c Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaRepository

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

func NewKafkaRepository

func NewKafkaRepository(brokers []string, topic string, groupID string) (*KafkaRepository, error)

func (*KafkaRepository) ReadSolution

func (r *KafkaRepository) ReadSolution(ctx context.Context) (*entity.Solution, error)

type RedisTracebackRepository

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

func NewRedisTracebackRepository

func NewRedisTracebackRepository(addr, password string, db int) (*RedisTracebackRepository, error)

func (*RedisTracebackRepository) GetTraceback

func (r *RedisTracebackRepository) GetTraceback(taskId int, userId int) (string, error)

func (*RedisTracebackRepository) SaveTraceback

func (r *RedisTracebackRepository) SaveTraceback(taskId int, userId int, traceback string) error

type TracebackRepository

type TracebackRepository interface {
	SaveTraceback(taskId int, userId int, traceback string) error
	GetTraceback(taskId int, userId int) (string, error)
}

Jump to

Keyboard shortcuts

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