services

package
Version: v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoardStreamService

type BoardStreamService interface {
	Start()
	Connect(stream kabuspb.KabusService_GetBoardsStreamingServer) error
}

type RegisterSymbolService

type RegisterSymbolService interface {
	CountAll() int
	GetAll() []*kabuspb.RegisterSymbol
	Get(requester string) []*kabuspb.RegisterSymbol
	Add(requester string, symbols []*kabuspb.RegisterSymbol)
	Remove(requester string, symbols []*kabuspb.RegisterSymbol)
}

func NewRegisterSymbolService

func NewRegisterSymbolService(registerSymbolStore repositories.RegisterSymbolStore) RegisterSymbolService

type TokenService

type TokenService interface {
	GetToken(ctx context.Context) (string, error)
	GetExpiredAt() time.Time
	Refresh(ctx context.Context) (string, error)
}

func NewTokenService

func NewTokenService(
	tokenStore repositories.TokenStore,
	security repositories.Security,
	clock repositories.Clock,
	setting repositories.Setting) TokenService

Jump to

Keyboard shortcuts

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