server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("server configuration not found")
	ErrConflict = errors.New("server configuration conflict")
)

Functions

This section is empty.

Types

type FxArgs added in v0.5.0

type FxArgs struct {
	fx.In

	ServerStorage server.Interface
}

type Interface

type Interface interface {
	CreateServerWithConfig(ctx context.Context, server domain.Server) error
	ObtainServerWithConfig(ctx context.Context, guildID string) (*domain.Server, error)
}

type Service

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

func New

func New(FxArgs FxArgs) *Service

func (*Service) CreateServerWithConfig added in v0.4.0

func (service *Service) CreateServerWithConfig(ctx context.Context, server domain.Server) error

func (*Service) ObtainServerWithConfig added in v0.4.0

func (service *Service) ObtainServerWithConfig(ctx context.Context, guildID string) (*domain.Server, error)

Jump to

Keyboard shortcuts

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