Files
systant/server/deps/tortoise/lib/tortoise/package/pingreq.ex
T
ryanandClaude b6769abbe9 Restructure as monorepo and add flake packages/apps
- Move Elixir code to server/ subdirectory for monorepo structure
- Update flake.nix to provide packages and apps outputs for nix run support
- Update nix/package.nix to accept src parameter instead of fetchgit
- Add NixOS module export for easy consumption

Now supports: nix run, nix build, and nix develop from git repo

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-02 19:54:17 -07:00

25 lines
546 B
Elixir

defmodule Tortoise.Package.Pingreq do
@moduledoc false
@opcode 12
alias Tortoise.Package
@opaque t :: %__MODULE__{
__META__: Package.Meta.t()
}
defstruct __META__: %Package.Meta{opcode: @opcode, flags: 0}
@spec decode(<<_::16>>) :: t
def decode(<<@opcode::4, 0::4, 0>>) do
%__MODULE__{}
end
# Protocols ----------------------------------------------------------
defimpl Tortoise.Encodable do
def encode(%Package.Pingreq{} = t) do
[Package.Meta.encode(t.__META__), 0]
end
end
end