Documentation
¶
Index ¶
- func DecodeSegment(seg string) ([]byte, error)
- func EncodeSegment(seg []byte) string
- func ExportRsaPrivateKeyAsPemStr(privkey *rsa.PrivateKey) string
- func ExportRsaPublicKeyAsPemStr(pubkey *rsa.PublicKey) (string, error)
- func GenerateRsaKeyPair() (*rsa.PrivateKey, *rsa.PublicKey)
- func ParseMap(data interface{}, dest interface{}) error
- func ParseRsaPrivateKeyFromPemStr(privPEM string) (*rsa.PrivateKey, error)
- func ParseRsaPublicKeyFromPemStr(pubPEM string) (*rsa.PublicKey, error)
- type HttpError
- type QueryExecuter
- type QueryHelper
- type QueryMockHelper
- func (q *QueryMockHelper) DoQuery(query string, args ...interface{}) ([]map[string]interface{}, error)
- func (q *QueryMockHelper) DoQueryRow(query string, args ...interface{}) (map[string]interface{}, error)
- func (q *QueryMockHelper) DoQuerySlice(query string, args ...interface{}) ([]interface{}, error)
- type RedisExecuter
- type RedisHelper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSegment ¶
func EncodeSegment ¶
func ExportRsaPrivateKeyAsPemStr ¶
func ExportRsaPrivateKeyAsPemStr(privkey *rsa.PrivateKey) string
func GenerateRsaKeyPair ¶
func GenerateRsaKeyPair() (*rsa.PrivateKey, *rsa.PublicKey)
func ParseRsaPrivateKeyFromPemStr ¶
func ParseRsaPrivateKeyFromPemStr(privPEM string) (*rsa.PrivateKey, error)
Types ¶
type HttpError ¶
func NewHttpError ¶
type QueryExecuter ¶
type QueryHelper ¶
func (*QueryHelper) DoQuery ¶
func (q *QueryHelper) DoQuery(query string, args ...interface{}) ([]map[string]interface{}, error)
func (*QueryHelper) DoQueryRow ¶
func (q *QueryHelper) DoQueryRow(query string, args ...interface{}) (map[string]interface{}, error)
func (*QueryHelper) DoQuerySlice ¶
func (q *QueryHelper) DoQuerySlice(query string, args ...interface{}) ([]interface{}, error)
type QueryMockHelper ¶
type QueryMockHelper struct { Data []map[string]interface{} Row map[string]interface{} Slice []interface{} Err error }
func (*QueryMockHelper) DoQuery ¶
func (q *QueryMockHelper) DoQuery(query string, args ...interface{}) ([]map[string]interface{}, error)
func (*QueryMockHelper) DoQueryRow ¶
func (q *QueryMockHelper) DoQueryRow(query string, args ...interface{}) (map[string]interface{}, error)
func (*QueryMockHelper) DoQuerySlice ¶
func (q *QueryMockHelper) DoQuerySlice(query string, args ...interface{}) ([]interface{}, error)
type RedisExecuter ¶
type RedisHelper ¶
func (*RedisHelper) Publish ¶
func (r *RedisHelper) Publish(channel string, message interface{}) error
Click to show internal directories.
Click to hide internal directories.