services

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecret

func GetSecret() string

GetSecret ...

func GetToken

func GetToken() string

func InitSecretFile

func InitSecretFile()

InitSecretFile ... to generate

func LoadSecretFile

func LoadSecretFile() error

LoadSecretFile ...

Types

type Args

type Args struct {
	UID string `json:"uid"`
	// Ticket  string `json:"ticket"`
	ResDesc string `json:"res_desc"`
	Action  string `json:"action"`
}

Args ...

type Auth

type Auth struct{}

Auth for rpc calling

func (Auth) IsPermitted

func (a Auth) IsPermitted(args *Args, reply *bool) error

IsPermitted check the permitted or not

Jump to

Keyboard shortcuts

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