MCPcopy Create free account
hub / github.com/emwalker/digraph / new

Method new

backend/src/graphql/mod.rs:101–115  ·  view source on GitHub ↗
(
        pool: PgPool,
        root: git::DataRoot,
        schema: Schema,
        server_secret: String,
        redis: Arc<redis::Redis>,
    )

Source from the content-addressed store, hash-verified

99
100impl State {
101 pub fn new(
102 pool: PgPool,
103 root: git::DataRoot,
104 schema: Schema,
105 server_secret: String,
106 redis: Arc<redis::Redis>,
107 ) -> Self {
108 Self {
109 pool,
110 root,
111 redis,
112 schema,
113 server_secret,
114 }
115 }
116
117 pub fn store(&self, viewer: Arc<Viewer>, timespec: &Timespec) -> Store {
118 let git = Arc::new(git::Client::new(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected