Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
func GenerateToken() string
func GetLocalIP ¶
func GetLocalIP() string
func IsPathWithin ¶
Types ¶
type Server ¶
type Server struct {
RootDir string
SecretCode string
Sessions *SessionStore
}
type SessionStore ¶
type SessionStore struct {
// contains filtered or unexported fields
}
func NewSessionStore ¶
func NewSessionStore() *SessionStore
func (*SessionStore) Add ¶
func (s *SessionStore) Add(token string)
func (*SessionStore) Has ¶
func (s *SessionStore) Has(token string) bool
Click to show internal directories.
Click to hide internal directories.