service

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	GetToken() (string, error)
	GetUserInfo() (*UserInfo, error)
}

type AuthClient

type AuthClient struct {
}

func NewAuthClient

func NewAuthClient(dial *grpc.ClientConn) (*AuthClient, error)

func (*AuthClient) GetToken

func (a *AuthClient) GetToken() (*Token, error)

type LoggerClient

type LoggerClient struct {
}

func NewLoggerClient

func NewLoggerClient(dial *grpc.ClientConn, ctx context.Context) (*LoggerClient, error)

func (*LoggerClient) Debug

func (l *LoggerClient) Debug(message string, args ...interface{})

func (*LoggerClient) Error

func (l *LoggerClient) Error(message string, args ...interface{})

func (*LoggerClient) Fatal

func (l *LoggerClient) Fatal(message string, args ...interface{})

func (*LoggerClient) Info

func (l *LoggerClient) Info(message string, args ...interface{})

func (*LoggerClient) Warn

func (l *LoggerClient) Warn(message string, args ...interface{})

type Storage

type Storage interface {
	Set(key string, value string) error
	Get(key string) (*string, error)
}

type StorageClient

type StorageClient struct {
}

func NewStorageClient

func NewStorageClient(dial *grpc.ClientConn) (*StorageClient, error)

func (*StorageClient) Get

func (s *StorageClient) Get(key string) (*string, error)

func (*StorageClient) Set

func (s *StorageClient) Set(key string, value string) error

type Token

type Token struct {
	AccessToken  string
	RefreshToken string
	RptToken     string
}

type UserInfo

type UserInfo struct {
	Username string
	Email    string
}

Jump to

Keyboard shortcuts

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