platform

package
v0.0.0-...-ff15c3c Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package platform contains all platform specific code in frost.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Session *SessionConfig `json:"session"`
}

type Platform

type Platform interface {
	Backend() matrix.Backend
	Cache() cache.Cache
	Logger() *zap.Logger

	LoadConfig() (AppConfig, error)
	FlushConfig(AppConfig) error
}

func Init

func Init() (Platform, error)

type SessionConfig

type SessionConfig struct {
	MxID     string `json:"mxid"`
	DeviceID string `json:"device_id"`
}

Jump to

Keyboard shortcuts

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