Skip to content

MikhailNazarov/yc-rs-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yandex Cloud Rust Lambda

This project is my attempt to make a minimal framework for creating serverless containers in Yandex Cloud

THIS LIBRARY IS UNDER HEAVY DEVELOPMENT

use yc_runtime::prelude::*;

#[tokio::main]
async fn main() -> RuntimeResult<()> {
    runtime().use_ydb().run(handler).await
}

async fn handler(event: Event, ydb: Component<YdbComponent>) -> RuntimeResult<String> {
    let table = ydb.table_client();

    for message in event.messages {
        // store message in db
    }

    Ok("Complete!".to_string())
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages