Documentation ¶
Index ¶
- func HomeUnix() (string, error)
- func NewKey(pubFile string, priFile string) error
- func PrivateKeyToString(pubk interface{}) (string, error)
- func PublicKeyToString(pubk interface{}) (string, error)
- func Sign(hash []byte, private *ecdsa.PrivateKey) ([]byte, error)
- func StringToPrivateKey(text string) (interface{}, error)
- func StringToPublicKey(text string) (interface{}, error)
- func Verify(hash []byte, public *ecdsa.PublicKey, sig string) error
- type ArgusClient
- type ClientConfig
- type Config
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivateKeyToString ¶
PrivateKeyToString convert rsa or ecdsa public key to string
func PublicKeyToString ¶
PublicKeyToString convert rsa or ecdsa public key to string
func StringToPrivateKey ¶
StringToPrivateKey convert string to rsa or ecdsa public key
func StringToPublicKey ¶
StringToPublicKey convert string to rsa or ecdsa public key
Types ¶
type ArgusClient ¶
type ArgusClient struct {
// contains filtered or unexported fields
}
ArgusClient client object
func NewArgusClient ¶
func NewArgusClient(conf *ClientConfig, publicKey *ecdsa.PublicKey) (*ArgusClient, error)
func (*ArgusClient) Run ¶
func (o *ArgusClient) Run()
type ClientConfig ¶
type Config ¶
type Config struct { LogPath string `json:"logdir"` BDPath string `json:"dbdir"` Address string `json:"address"` }
Config server config
Click to show internal directories.
Click to hide internal directories.