svc

package
v0.0.0-...-12e4130 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserNotLogin = errors.New("user is not login")
)

Functions

This section is empty.

Types

type ServiceContext

type ServiceContext struct {
	Config        config.Config
	NoteUserModel model.NoteUserModel
}

func NewServiceContext

func NewServiceContext(c config.Config) *ServiceContext

func (ServiceContext) UserFilter

func (s ServiceContext) UserFilter(ctx context.Context) (*UserInfo, error)

type UserInfo

type UserInfo struct {
	UserID int64 `json:"user_id"`
}

Jump to

Keyboard shortcuts

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