proto

package
v0.0.0-...-c508d84 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePostRequest

type CreatePostRequest struct {
	User        string        `json:"user"`
	Links       []LinkRequest `json:"links"`
	DeciderType string        `json:"decider_type"`
}

type CreatePostResponse

type CreatePostResponse struct {
	Key string `json:"key"`
	// contains filtered or unexported fields
}

type DeletePostRequest

type DeletePostRequest struct {
	Key string `json:"key"`
}

type DeletePostResponse

type DeletePostResponse struct {
	// contains filtered or unexported fields
}
type Link struct {
	Url      string `json:"url"`
	Accesses uint   `json:"accesses"`
}

type LinkRequest

type LinkRequest struct {
	Url       string `json:"url"`
	Threshold uint   `json:"threshold"`
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type LoginResponse

type LoginResponse struct {
	Result string `json:"result"`
	Err    string `json:"err,omitempty"`
}

type LogoutRequest

type LogoutRequest struct {
}

type LogoutResponse

type LogoutResponse struct {
	// contains filtered or unexported fields
}

type RegisterRequest

type RegisterRequest struct {
	LoginRequest
}

type RegisterResponse

type RegisterResponse struct {
	// contains filtered or unexported fields
}

type ViewPostRequest

type ViewPostRequest struct {
	Key string `json:"key"`
}

type ViewPostResponse

type ViewPostResponse struct {
	Links []Link `json:"links"`
	Key   string `json:"key"`
	// contains filtered or unexported fields
}

type VisitPostRequest

type VisitPostRequest struct {
	Key string `json:"key"`
}

type VisitPostResponse

type VisitPostResponse struct {
	Link string `json:"link"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL