Sign in

    mizchi/bit/types does not have a README file

    Commit

    using @mizchi/bit/object { type Commit }

    Git commit object

    GitError

    Git operation errors

    HashAlgorithm

    HashState

    ObjectId

    Object identifier (20 bytes for SHA-1, 32 bytes for SHA-256)

    ObjectType

    Git object types

    PackCompression

    Compression mode for packfile entries

    PackDeltaMode

    Delta encoding mode for packfile generation

    PackObject

    A Git object ready for packing

    Sha1State

    Sha256State

    TreeEntry

    Tree entry in a Git tree object

    FileSystem

    pub(open) trait FileSystem {
    mkdir_p(Self, String) -> Unit raise
    GitError

    write_file(Self, String, Bytes) -> Unit raise
    GitError

    write_string(Self, String, String) -> Unit raise
    GitError

    remove_file(Self, String) -> Unit raise
    GitError

    remove_dir(Self, String) -> Unit raise
    GitError

    }

    HttpClient

    pub(open) trait HttpClient {
    get(Self, String, Map[String, String]) -> (HttpResponse, Bytes) raise
    GitError

    post(Self, String, Bytes, Map[String, String]) -> (HttpResponse, Bytes) raise
    GitError

    }

    RepoFileSystem

    pub(open) trait RepoFileSystem {
    read_file(Self, String) -> Bytes raise
    GitError

    readdir(Self, String) -> Array[String] raise
    GitError

    is_dir(Self, String) -> Bool
    is_file(Self, String) -> Bool
    }

    HttpResponse

    pub struct HttpResponse {
    code : Int
    headers : Map[String, String]
    }

    HttpResponse::new

    fn HttpResponse::new(code : Int) -> HttpResponse

    HttpResponse::with_headers

    fn HttpResponse::with_headers(code : Int, headers : Map[String, String]) -> HttpResponse

    MockHttpClient

    pub struct MockHttpClient {
    responses : Map[String, (Int, Bytes)]
    }

    MockHttpClient::add_response

    fn MockHttpClient::add_response(self : MockHttpClient, url : String, code : Int, body : Bytes) -> Unit

    MockHttpClient::new

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io