Fork of github.com/did-method-plc/did-method-plc
1import { PlcDatabase } from './db'
2
3export class AppContext {
4 constructor(
5 private opts: {
6 db: PlcDatabase
7 version: string
8 port?: number
9 },
10 ) {}
11
12 get db() {
13 return this.opts.db
14 }
15
16 get version() {
17 return this.opts.version
18 }
19
20 get port() {
21 return this.opts.port
22 }
23}
24
25export default AppContext