apis

package
v1.1.0-rc Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: AGPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var I18n i18n.I18n

I18n .

Functions

func GetHeader added in v1.1.0

func GetHeader(ctx context.Context, key string) string

GetHeader

func GetIntOrgID added in v1.1.0

func GetIntOrgID(ctx context.Context) (int64, error)

GetIntOrgID .

func GetIntUserID added in v1.1.0

func GetIntUserID(ctx context.Context) (int64, error)

GetIntUserID .

func GetOrgID added in v1.1.0

func GetOrgID(ctx context.Context) string

GetOrgID .

func GetUserID added in v1.1.0

func GetUserID(ctx context.Context) string

GetUserID .

func Language added in v1.1.0

func Language(ctx context.Context) i18n.LanguageCodes

Language .

func Options

func Options() transport.ServiceOption

Options .

Types

type Error

type Error struct {
	Code interface{} `json:"code,omitempty"`
	Msg  interface{} `json:"msg,omitempty"`
	Ctx  interface{} `json:"ctx,omitempty"`
}

Error .

func (*Error) Error

func (s *Error) Error() string

type Response

type Response struct {
	Success bool        `json:"success,omitempty"`
	Data    interface{} `json:"data,omitempty"`
	Err     *Error      `json:"err,omitempty"`
}

Response .

Jump to

Keyboard shortcuts

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