service

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(cfg *config.Config) *Service

func (*Service) Auth

func (s *Service) Auth(request *model.AuthRequest) (res *model.AuthResponse, err error)

func (*Service) CompareValues

func (s *Service) CompareValues(srcValue interface{}, destValue interface{}) (bool, error)

func (Service) Config

func (s Service) Config() *config.Config

func (*Service) FindUid

func (s *Service) FindUid(uidName string, result interface{}) (string, bool)

func (*Service) ParseConfigString

func (s *Service) ParseConfigString(configString string) (*model.AppConfig, error)

func (*Service) ParseTokenInRequest

func (s *Service) ParseTokenInRequest(tokenInRequest *string) (digest string, createTime int64, token string, err error)

func (*Service) Ping

func (s *Service) Ping() error

func (*Service) SignIn

func (s *Service) SignIn(request *model.SignInRequest) (res *model.SignInResponse, err error)

Jump to

Keyboard shortcuts

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