Skip to content

Commit

Permalink
s/create_tail_heartbeat/send_tail_heartbeat/g
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleymichal committed Apr 15, 2020
1 parent a838613 commit 9a7bf0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cloudflare/src/endpoints/workers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ use serde::Deserialize;
mod create_route;
mod create_secret;
mod create_tail;
mod create_tail_heartbeat;
mod delete_route;
mod delete_secret;
mod delete_tail;
mod list_routes;
mod list_secrets;
mod list_tails;
mod send_tail_heartbeat;

pub use create_route::{CreateRoute, CreateRouteParams};
pub use create_secret::{CreateSecret, CreateSecretParams};
pub use create_tail::{CreateTail, CreateTailParams};
pub use create_tail_heartbeat::CreateTailHeartbeat;
pub use delete_route::DeleteRoute;
pub use delete_secret::DeleteSecret;
pub use delete_tail::DeleteTail;
pub use list_routes::ListRoutes;
pub use list_secrets::ListSecrets;
pub use list_tails::ListTails;
pub use send_tail_heartbeat::SendTailHeartbeat;

/// Workers KV Route
/// Routes are basic patterns used to enable or disable workers that match requests.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::framework::endpoint::{Endpoint, Method};

/// Send Tail Heartbeat
/// https://api.cloudflare.com/#worker-tail-heartbeat
pub struct CreateTailHeartbeat<'a> {
pub struct SendTailHeartbeat<'a> {
/// Account ID of owner of the script
pub account_identifier: &'a str,
/// The name of the script to tail
Expand All @@ -13,7 +13,7 @@ pub struct CreateTailHeartbeat<'a> {
pub tail_id: &'a str,
}

impl<'a> Endpoint<WorkersTail> for CreateTailHeartbeat<'a> {
impl<'a> Endpoint<WorkersTail> for SendTailHeartbeat<'a> {
fn method(&self) -> Method {
Method::Post
}
Expand Down

0 comments on commit 9a7bf0d

Please sign in to comment.