All Projects → lpgauth → metal

lpgauth / metal

Licence: MIT License
Lightweight Erlang server behaviour

Programming Languages

erlang
1774 projects
Makefile
30231 projects

Projects that are alternatives of or similar to metal

wumpfetch
🚀🔗 A modern, lightweight, fast and easy to use Node.js HTTP client
Stars: ✭ 20 (+33.33%)
Mutual labels:  lightweight
psched
Priority-based Task Scheduling for Modern C++
Stars: ✭ 59 (+293.33%)
Mutual labels:  lightweight
zoom
Lightweight (8 Kb) ES5 javascript plugin without any dependencies, compatible with desktop and mobile devices.
Stars: ✭ 25 (+66.67%)
Mutual labels:  lightweight
macos-receiver
A MacOS TabBar (StatusBar) application that securely receives one-time passwords (OTPs) that you tapped in Raivo for iOS.
Stars: ✭ 44 (+193.33%)
Mutual labels:  lightweight
tiktok-downloader
Tiktok Downloader/Scraper using requests & bs4
Stars: ✭ 47 (+213.33%)
Mutual labels:  lightweight
lwow
Lightweight onewire protocol library optimized for UART hardware on embedded systems
Stars: ✭ 98 (+553.33%)
Mutual labels:  lightweight
tiny-framework
A light wight easy to use RESTful apis framework for education & demo purposes. stripped down framework to the fundamental components that that every one would essentially need to (learn / make a demo application).
Stars: ✭ 13 (-13.33%)
Mutual labels:  lightweight
pickledb-rs
PickleDB-rs is a lightweight and simple key-value store. It is a Rust version for Python's PickleDB
Stars: ✭ 116 (+673.33%)
Mutual labels:  lightweight
sabotage
a radical and experimental distribution based on musl libc and busybox
Stars: ✭ 502 (+3246.67%)
Mutual labels:  lightweight
rails5-docker-alpine
Lightweight Docker development environment for Rails using Alpine Linux
Stars: ✭ 71 (+373.33%)
Mutual labels:  lightweight
lightue
A lightweight and simple model-view framework inspired by Vue.js
Stars: ✭ 13 (-13.33%)
Mutual labels:  lightweight
crawley
Crawley the Telegram Beholder
Stars: ✭ 24 (+60%)
Mutual labels:  lightweight
tdme2
TDME2 - ThreeDeeMiniEngine2 is a lightweight, multi-platform 3D engine including tools suited for 3D game/application development using C++
Stars: ✭ 86 (+473.33%)
Mutual labels:  lightweight
AutoMagic
A magically fast, lightweight and customizable javascript library.
Stars: ✭ 16 (+6.67%)
Mutual labels:  lightweight
matterless
Self-hosted serverless
Stars: ✭ 23 (+53.33%)
Mutual labels:  lightweight
advxml
A lightweight, simple and functional library DSL to work with XML in Scala with Cats
Stars: ✭ 54 (+260%)
Mutual labels:  lightweight
StringDB
StringDB is a modular, key/value pair archival DB designed to consume *tiny* amounts of ram & produce *tiny* databases.
Stars: ✭ 56 (+273.33%)
Mutual labels:  lightweight
DuiMini
Cross-platform, lightweight DirectUI GUI framework.
Stars: ✭ 13 (-13.33%)
Mutual labels:  lightweight
picamera-motion
Raspberry Pi python PiCamera Lightweight Motion Detection. Includes easy curl script install/upgrade, whiptail admin menu system, single file web server and Rclone for uploading to a variety of web storage services.
Stars: ✭ 80 (+433.33%)
Mutual labels:  lightweight
datagoose
🔐 Easy to use, fast, lightweight, secure, JSON based database for Python!
Stars: ✭ 13 (-13.33%)
Mutual labels:  lightweight

metal

Lightweight Erlang server behaviour

Build Status Coverage Status

API

Behaviour callbacks

Required

-callback handle_msg(Msg :: term(), State :: term()) ->
    {ok, State :: term()}.

Optional

-callback init(Name :: atom(), Parent :: pid(), State :: term()) ->
    {ok, State :: term()}.

-callback terminate(Reason :: term(), State :: term()) ->
    ok.

Example

-module(test_server).

-export([
    start_link/1
]).

-behaviour(metal).
-export([
    init/3,
    handle_msg/2,
    terminate/2
]).

start_link(Name) ->
    metal:start_link(?MODULE, Name, Opts).

%% metal callbacks
init(_Name, _Parent, Opts) ->
    {ok, State}.

handle_msg(_Msg, State) ->
    {ok, State}.

terminate(_Reason, _State) ->
    ok.

Tests

make dialyzer
make elvis
make eunit
make xref

License

The MIT License (MIT)

Copyright (c) 2016-2017 Louis-Philippe Gauthier

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].