Skip to content

Commit

Permalink
Update module docs with artifacts, fix names
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Nett <JNett96@gmail.com>
  • Loading branch information
rnett committed Jun 2, 2021
1 parent cec436a commit 5184774
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 7 deletions.
4 changes: 3 additions & 1 deletion core/krosstalk-base/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Module Krosstalk Core
# Module Krosstalk Base

Krosstalk APIs that are shared between the runtime and compiler plugin. None of these are user facing, you should not
need them unless you are implementing a plugin.

Artifact: `com.github.rnett.krosstalk:krosstalk-base` (you shouldn't ever need this)

# Package com.rnett.krosstalk

Contains the default values for annotations, and the special parameter keys for endpoints (i.e. [extensionReceiver]).
Expand Down
2 changes: 2 additions & 0 deletions core/krosstalk-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Krosstalk APIs necessary for defining a client.

Artifact: `com.github.rnett.krosstalk:krosstalk-client`

For usage instructions, see the [github readme](./../../README.md#krosstalk-a-pure-kotlin-pluggable-rpc-library).

For more examples, see [tests](./../../tests).
Expand Down
2 changes: 2 additions & 0 deletions core/krosstalk-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Krosstalk APIs necessary for defining a server.

Artifact: `com.github.rnett.krosstalk:krosstalk-server`

For usage instructions, see the [github readme](./../../README.md#krosstalk-a-pure-kotlin-pluggable-rpc-library).

For more examples, see [tests](./../../tests).
Expand Down
4 changes: 3 additions & 1 deletion core/krosstalk/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Module Krosstalk
# Module Krosstalk Core

Common Krosstalk APIs that are used be both clients and servers, and everything required to define an `expect`
Krosstalk. Includes `Krosstalk`, `Scope`, `KrosstalkResult`, etc.

Artifact: `com.github.rnett.krosstalk:krosstalk`

Usually the only source set that needs to explicitly depend on this artifact is the `common` one, source sets or modules
with Krosstalk client or servers will inherit it.

Expand Down
26 changes: 23 additions & 3 deletions plugins/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
# Ktor
# Plugins

This directory contains basic Ktor client and server plugins. Both include authentication scopes, and the client plugin
is multiplatform.
We provide plugins for [Kotlinx.serialization](https://github.com/Kotlin/kotlinx.serialization)
and [Ktor](https://ktor.io/) client and server. Authentication scopes for Ktor clients and servers are also included.

If you are making a third party plugin, please make an issue or PR on the
[GitHub repo](https://github.com/rnett/krosstalk) so that we can list it here.

## Artifacts

#### Serialization

* Kotlinx serialization (includes JSON): `com.github.rnett.krosstalk:krosstalk-kotlinx-serialization`

#### Client

* Ktor: `com.github.rnett.krosstalk:krosstalk-ktor-client`
* Auth: `krosstalk-ktor-client-auth`

#### Server

* Ktor: `com.github.rnett.krosstalk:krosstalk-ktor-server`
* Auth: `krosstalk-ktor-server-auth`
* JWT: `krosstalk-ktor-server-auth-jwt`
2 changes: 2 additions & 0 deletions plugins/krosstalk-kotlinx-serialization/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

A Krosstalk serialization plugin using [Kotlinx.serialization](https://github.com/Kotlin/kotlinx.serialization).

Artifact: `com.github.rnett.krosstalk:krosstalk-kotlinx-serialization`

Provides the JSON format by default, others can be used as well.

[KotlinxBinarySerializationHandler] is used for binary formats, and [KotlinxStringSerializationHandler] for string
Expand Down
2 changes: 2 additions & 0 deletions plugins/ktor-client/krosstalk-ktor-client-auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Auth scopes for the Krosstalk Ktor client plugin.

Artifact: `com.github.rnett.krosstalk:krosstalk-ktor-client-auth`

[KtorClientAuth] can be used to configure a generic Ktor auth feature.

[KtorClientBasicAuth] configures basic auth.
Expand Down
5 changes: 4 additions & 1 deletion plugins/ktor-client/krosstalk-ktor-client/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Module Krosstalk Ktor Client

A basic multiplatform Krosstalk client plugin using [Ktor](https://ktor.io/).
A basic multiplatform Krosstalk client plugin using [Ktor](https://ktor.io/). Supports all platforms Ktor does,
which is currently everything except `watchosX64`.

Artifact: `com.github.rnett.krosstalk:krosstalk-ktor-client`

To use, have your Krosstalk client object implement `KtorKrosstalkClient`, and set `client` to a `KtorClient`.

Expand Down
2 changes: 2 additions & 0 deletions plugins/ktor-server/krosstalk-ktor-server-auth-jwt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

A Jwt Auth scope for the Krosstalk Ktor server plugin.

Artifact: `com.github.rnett.krosstalk:krosstalk-ktor-server-auth-jwt`

# Package com.rnett.krosstalk.ktor.server.auth

A Jwt Auth scope for the Krosstalk Ktor server plugin. See module description.
2 changes: 2 additions & 0 deletions plugins/ktor-server/krosstalk-ktor-server-auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Auth scopes for the Krosstalk Ktor server plugin.

Artifact: `com.github.rnett.krosstalk:krosstalk-ktor-server-auth`

We provide a base auth scope [KtorServerAuth], a base auth scope for authentication types that provide a
principal [KtorServerPrincipalAuth], and several implementations:

Expand Down
5 changes: 4 additions & 1 deletion plugins/ktor-server/krosstalk-ktor-server/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Module Krosstalk Ktor Server

A basic Krosstalk server plugin using [Ktor](https://ktor.io/). Includes authentication scopes.
A basic Krosstalk server plugin using [Ktor](https://ktor.io/). Includes authentication scopes. Note that like Ktor itself,
this only supports JVM. Clients, however, are multiplatform.

Artifact: `com.github.rnett.krosstalk:krosstalk-ktor-server`

To use, have your Krosstalk server object implement `KtorKrosstalkServer`, and set `server` to a `KtorServer`.

Expand Down

0 comments on commit 5184774

Please sign in to comment.