confluence

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: MIT Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMethod added in v0.0.34

type AuthMethod interface {
	// contains filtered or unexported methods
}

AuthMethod the authentication interface

func BasicAuth

func BasicAuth(username, password string) AuthMethod

BasicAuth method

type Client added in v0.0.34

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

Client command to create git hooks

func NewClient added in v0.0.34

func NewClient(options ...Option) *Client

NewClient with the given options.

func (*Client) SendRequest added in v0.0.34

func (c *Client) SendRequest(req *http.Request) (*Response, error)

SendRequest make a request with an auhentication schema and return the whole request

type Option

type Option func(*Client)

Option function.

func WithAuth

func WithAuth(auth AuthMethod) Option

WithAuth option.

type Response added in v0.0.34

type Response struct {
	StatusCode int
	Status     string
	Payload    []byte
}

Response represent the result of the json request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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