controller

package
v0.0.0-...-3010e5a Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 2 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 interface {
	BindAddr() string
}

type Interface

type Interface interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
}

type Service

type Service interface {
	CreateRecord(ctx context.Context, req *model.CreateRecordRequest) (*model.CreateRecordResponse, error)
	GetRecord(ctx context.Context, id string) (*model.GetRecordResponse, error)
	GetRecords(ctx context.Context) (*model.GetAllRecordsResponse, error)
	GetUser(ctx context.Context, user string) (*model.GetUserRecordsResponse, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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